mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
use other grub file
This commit is contained in:
parent
5c868dee23
commit
b5d5df4570
4 changed files with 10 additions and 6 deletions
|
|
@ -1,5 +1,6 @@
|
|||
input.txt: gen_input.sh
|
||||
sed -i 's/quiet/quiet $(EXTRA_BOOT_PARAMS)/g' ../results/boot/grub2/grub.cfg
|
||||
find
|
||||
$(if $(wildcard ../results/boot/grub2/grub.cfg),sed -i 's/quiet/quiet $(EXTRA_BOOT_PARAMS)/g' ../results/boot/grub2/grub.cfg)
|
||||
sed -i 's/quiet/quiet $(EXTRA_BOOT_PARAMS)/g' ../results/EFI/BOOT/grub.cfg
|
||||
$(eval _VARS = ARCH FLATPAK_DIR IMAGE_NAME IMAGE_TAG ISO_NAME VERSION)
|
||||
$(foreach var,$(_VARS),$(var)=$($(var))) bash gen_input.sh | tee input.txt
|
||||
|
|
|
|||
|
|
@ -14,8 +14,11 @@ do
|
|||
then
|
||||
continue
|
||||
fi
|
||||
echo "-map ${PWD}/${file} ${file:2}"
|
||||
echo "-chmod 0444 ${file:2}"
|
||||
if [[ -f ${PWD}/${file} ]]
|
||||
then
|
||||
echo "-map ${PWD}/${file} ${file:2}"
|
||||
echo "-chmod 0444 ${file:2}"
|
||||
fi
|
||||
done
|
||||
popd > /dev/null
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue