Skip to content

Commit

Permalink
Update package
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems authored Dec 17, 2024
1 parent a0dd61f commit 344565d
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions package/debian-chroot/package
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -35,22 +35,27 @@ 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() {
# Force debian chroot to install iteself
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"
}
}
Expand Down

0 comments on commit 344565d

Please sign in to comment.