This commit is contained in:
teldra 2022-02-07 04:23:51 +01:00
parent 66dbcd8289
commit b34f585d7f
1 changed files with 3 additions and 1 deletions

View File

@ -242,13 +242,15 @@ do_chroot() {
echo "TARGETNAME_UNDERSCORE=$TARGETNAME_UNDERSCORE" >> ${target}/tmp/vinstaller/vars
cat <<EOF > ${target}/tmp/vinstaller/main_chroot
#!/bin/bash
. /tmp/vinstaller/vars
for file in \$(find /tmp/vinstaller/run -type f); do
. $file
config
done
EOF
chmod +x /tmp/vinstaller/main_chroot
chroot ${target} /tmp/vinstaller/main_chroot
}