mirror of
https://github.com/Thinstation/thinstation-ng.git
synced 2025-04-26 12:50:34 +03:00
modified: setup-chroot
modified: ts/build/boot-images/initrd/initrd.devices
This commit is contained in:
parent
13874f0f00
commit
66f5cdc88a
2 changed files with 19 additions and 0 deletions
19
setup-chroot
19
setup-chroot
|
@ -155,6 +155,16 @@ do_mounts()
|
||||||
mount --bind /run/user/$SUDO_UID run/user/$SUDO_UID
|
mount --bind /run/user/$SUDO_UID run/user/$SUDO_UID
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if [ -e /mnt/wsl ]; then
|
||||||
|
for mount in `ls -A /mnt`; do
|
||||||
|
if mounted /mnt/$mount; then
|
||||||
|
if ! mounted mnt/$mount; then
|
||||||
|
mkdir -p mnt/$mount
|
||||||
|
mount --bind /mnt/$mount mnt/$mount
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
copy_host_essential()
|
copy_host_essential()
|
||||||
|
@ -166,6 +176,8 @@ copy_host_essential()
|
||||||
# cp -a $auth_file $PWD$auth_dir/.
|
# cp -a $auth_file $PWD$auth_dir/.
|
||||||
# fi
|
# fi
|
||||||
# cp -f /etc/resolv.conf etc/resolv.conf
|
# cp -f /etc/resolv.conf etc/resolv.conf
|
||||||
|
rm -f etc/resolv.conf
|
||||||
|
cp -a /etc/resolv.conf etc/resolv.conf
|
||||||
if ${keys:=false}; then
|
if ${keys:=false}; then
|
||||||
if [ -e ~/.ssh ]; then
|
if [ -e ~/.ssh ]; then
|
||||||
mkdir -p root
|
mkdir -p root
|
||||||
|
@ -233,6 +245,13 @@ do_unmounts()
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ -e mnt/wsl ]; then
|
||||||
|
for mount in `ls -A mnt`; do
|
||||||
|
while mounted mnt/$mount; do
|
||||||
|
umount -l mnt/$mount
|
||||||
|
done
|
||||||
|
done
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue