From 8353024c67767abf285e376a7c074cc817f7f43d Mon Sep 17 00:00:00 2001 From: teldra Date: Mon, 7 Feb 2022 16:10:15 +0100 Subject: [PATCH] progress --- main.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.sh b/main.sh index de14334..9e24674 100644 --- a/main.sh +++ b/main.sh @@ -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