From: Paul Hänsch Date: Mon, 20 Feb 2023 09:37:05 +0000 (+0100) Subject: mount proc during package install (required by jre) X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=babf70f600416d4ac4466bf24925dfb311f0385f;p=blast mount proc during package install (required by jre) --- diff --git a/Makefile b/Makefile index 51ef4b5..59ab228 100644 --- a/Makefile +++ b/Makefile @@ -255,12 +255,14 @@ _install: ${SYSROOT} _aptkeys _norecommends -chroot "$${SYSROOT}" apt-get update chroot "$${SYSROOT}" ln -sf /bin/true /usr/local/sbin/invoke-rc.d chroot "$${SYSROOT}" ln -sf /bin/true /usr/sbin/udevadm + mountpoint "$${SYSROOT}/proc" || mount -o bind /proc "$${SYSROOT}/proc" chroot "$${SYSROOT}" apt-get --yes -t "${release}" install ${PACKAGES} mkdir -p -m 755 "$${SYSROOT}/var/lib/deborphan/" chroot "$${SYSROOT}" sh -c 'printf "%s\\n" ${PACKAGES} >/var/lib/deborphan/keep' -chroot "$${SYSROOT}" sh -c 'apt-get --yes purge $$(deborphan -an |sed "s;^.* ;;g")' chroot "$${SYSROOT}" apt-get --yes --auto-remove purge -chroot "$${SYSROOT}" apt-get --yes --auto-remove upgrade + -umount "$${SYSROOT}/proc" chroot "$${SYSROOT}" apt-get clean chroot "$${SYSROOT}" rm /usr/local/sbin/invoke-rc.d chroot "$${SYSROOT}" rm /usr/sbin/udevadm