From 344565dfc966e00570ff04b801229ee225026274 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Tue, 17 Dec 2024 13:02:05 -0700 Subject: [PATCH] Update package --- package/debian-chroot/package | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/package/debian-chroot/package b/package/debian-chroot/package index 0ee9c7afe..52eef0fc8 100644 --- a/package/debian-chroot/package +++ b/package/debian-chroot/package @@ -11,12 +11,12 @@ installdepends=(display) flags=(nostrip) source=( - https://github.com/Eeems-org/remarkable-debian-chroot/archive/3ea18ec34cd5e720ec3959c68dcb10a390f6f864.zip + https://github.com/Eeems-org/remarkable-debian-chroot/archive/6f7ba5ca114bc416f53d646ba3bbe4f37050ae0e.zip https://salsa.debian.org/installer-team/debootstrap/-/archive/1.0.133/debootstrap-1.0.133.tar.gz debian-chroot.conf ) sha256sums=( - 7ba890b00af5f2d8b15aec395acf8db0ca591794303d5e49e19455039b808a9f + 0612f909d9e58fc60f89967c27fb41db7c3536bf65fb019e0fb1cd5476deee2d 734af3492eea99de940853e2c00e1a9ebd65c463362155f613aa24b9cc3336a0 SKIP ) @@ -35,6 +35,10 @@ debian-chroot() { install -D -m 655 \ "$srcdir"/debian-chroot.conf \ "$pkgdir"/home/root/.config/debian-chroot.conf + ln -s /home/root/.config/debian-chroot.conf \ + "$pkgdir"/opt/etc/debian-chroot.conf + source "$srcdir"/debian-chroot.conf + ln -s "$chroot_path" "$pkgdir"/opt/lib/debian-chroot mkdir -p "${pkgdir}/opt/lib/debian-chroot" } configure() { @@ -42,15 +46,16 @@ debian-chroot() { debian-chroot true } preremove() { - if lsof /opt/lib/debian-chroot; then + source /home/root/.config/debian-chroot.conf + if lsof "$chroot_path"; then echo "Error: debian-chroot has running processes" exit 1 fi - umount -Rl /opt/lib/debian-chroot - umount -Rl /home/root/.entware/lib/debian-chroot + umount -Rl "$chroot_path" } postremove() { - rm -rf /opt/lib/debian-chroot + source /home/root/.config/debian-chroot.conf + rm -rf "$chroot_path" echo "Please reboot your system" } }