More reliable enter.sh
This commit is contained in:
parent
c17520bc8a
commit
3618d9815f
8
enter.sh
8
enter.sh
|
@ -27,6 +27,10 @@ run() {
|
|||
}
|
||||
|
||||
set -e
|
||||
umount ${FS}/dev/pts || true
|
||||
umount ${FS}/sys/kernel/security || true
|
||||
umount ${FS}/sys || true
|
||||
umount ${FS}/proc || true
|
||||
mount -t proc none ${FS}/proc
|
||||
mount -t sysfs none ${FS}/sys
|
||||
mount -t devpts none ${FS}/dev/pts
|
||||
|
@ -34,9 +38,9 @@ mount -t devpts none ${FS}/dev/pts
|
|||
run "echo 'nameserver 8.8.8.8' > /etc/resolv.conf"
|
||||
run "dbus-uuidgen > /var/lib/dbus/machine-id"
|
||||
run "dpkg-divert --local --rename --add /sbin/initctl"
|
||||
run "ln -s /bin/true /sbin/initctl"
|
||||
run "ln -sf /bin/true /sbin/initctl"
|
||||
run "dpkg-divert --local --rename --add /usr/sbin/update-grub"
|
||||
run "ln -s /bin/true /usr/sbin/update-grub"
|
||||
run "ln -sf /bin/true /usr/sbin/update-grub"
|
||||
|
||||
set +e
|
||||
if [ -z "$1" ] ; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user