Remove wdvn-chroot/wdvn-chroot-end from live-installer login
This commit is contained in:
parent
a58921681f
commit
ac8a9404f9
@ -2,31 +2,6 @@
|
|||||||
export PATH="/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
|
export PATH="/sbin:/usr/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"
|
||||||
export HOME="/root"
|
export HOME="/root"
|
||||||
|
|
||||||
function wdvn-chroot {
|
|
||||||
(
|
|
||||||
set -e
|
|
||||||
mount -o bind "/dev" "$1/dev"
|
|
||||||
mount -o bind "/dev/pts" "$1/dev/pts"
|
|
||||||
mount -o bind "/sys" "$1/sys"
|
|
||||||
mount -t proc none "$1/proc"
|
|
||||||
chroot "$1" ${@:2}
|
|
||||||
)
|
|
||||||
|
|
||||||
if [ $? != 0 ]; then
|
|
||||||
wdvn-chroot-end "$1"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
wdvn-chroot-end "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
function wdvn-chroot-end {
|
|
||||||
umount -l "$1/proc"
|
|
||||||
umount -l "$1/sys"
|
|
||||||
umount -l "$1/dev/pts"
|
|
||||||
umount -l "$1/dev"
|
|
||||||
}
|
|
||||||
|
|
||||||
CHOICE=1
|
CHOICE=1
|
||||||
|
|
||||||
dpkg-reconfigure keyboard-configuration
|
dpkg-reconfigure keyboard-configuration
|
||||||
|
Loading…
Reference in New Issue
Block a user