This commit is contained in:
teldra 2022-02-07 16:10:15 +01:00
parent 3ba17d4a31
commit 8353024c67

View File

@ -6,7 +6,7 @@ tmp_target="${main}/tmp_target"
pass="oem"
if [ $DEBUG ]; then
umount -R ${target}/boot/efi ${target}/boot ${target}
umount -R ${target}/boot/efi ${target}/boot ${target}/tmp/vinstaller/ ${target}
vgchange -an
cryptsetup close /dev/mapper/luks*
fi
@ -324,6 +324,9 @@ do_install() {
}
do_chroot() {
mkdir -p ${target}/tmp/vinstaller/
mount -t tmpfs -o size=50m tmpfs ${target}/tmp/vinstaller/
mkdir -p ${target}/tmp/vinstaller/run
cp ./etc/functions ${target}/tmp/vinstaller/
cp ./etc/base ${target}/tmp/vinstaller/
@ -331,7 +334,7 @@ do_chroot() {
cp -rf $tmp_target ${target}/tmp/vinstaller/run
echo "USERNAME=$USERNAME" > ${target}/tmp/vinstaller/vars
echo "pass=$pass" > ${target}/tmp/vinstaller/vars
echo "pass=$pass" >> ${target}/tmp/vinstaller/vars
echo "HOSTNAME=$HOSTNAME" >> ${target}/tmp/vinstaller/vars
echo "EFI=$EFI" >> ${target}/tmp/vinstaller/vars
echo "LANGUAGE=$LANGUAGE" >> ${target}/tmp/vinstaller/vars