mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 02:47:56 +01:00
Add build for Fedora-bootc (#105)
This commit is contained in:
parent
ee3a60c6a1
commit
383427c619
17 changed files with 174 additions and 198 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
FOUND_VERSION=$(grep VERSION_ID mnt/install/etc/os-release | cut -d= -f2)
|
||||
FOUND_VERSION=$(grep VERSION_ID mnt/install/etc/os-release | cut -d= -f2 | tr -d '"')
|
||||
|
||||
if [[ ${FOUND_VERSION} != ${VERSION} ]]
|
||||
then
|
||||
|
|
|
|||
|
|
@ -100,12 +100,12 @@ for line in readme_lines:
|
|||
if parts[2].strip() != inputs[var_name]['description']:
|
||||
print("WARNING: " + var_name + " description in README.md does not match action.yml")
|
||||
if 'default_value' in inputs[var_name]:
|
||||
if not parts[3].strip().strip('"').startswith('*'):
|
||||
if not parts[3].strip().strip('"<>').startswith('*'):
|
||||
if inputs[var_name]['default_value'] == "":
|
||||
if parts[3].strip().strip('"') != '\\[empty\\]':
|
||||
print("ERROR: " + var_name + " default value in README.md does not match action.yml")
|
||||
errors += 1
|
||||
elif parts[3].strip().strip('"') != inputs[var_name]['default_value']:
|
||||
elif parts[3].strip().strip('"<>') != inputs[var_name]['default_value']:
|
||||
print("ERROR: " + var_name + " default value in README.md does not match action.yml")
|
||||
errors += 1
|
||||
if 'action' in inputs[var_name] and inputs[var_name]['action']:
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ files/mnt/iso:
|
|||
sudo mount -o loop ../../$(ISO_NAME) files/mnt/iso
|
||||
|
||||
files/grub.cfg: files/mnt/iso
|
||||
cp files/mnt/iso/boot/grub2/grub.cfg files/grub.cfg
|
||||
cp files/mnt/iso/$(if $(_RHEL),isolinux/grub.conf,boot/grub2/grub.cfg) files/grub.cfg
|
||||
sed -i 's/quiet/console=ttyS0,115200n8 inst.ks=cdrom:\/ks.cfg/' files/grub.cfg
|
||||
sed -i 's/set default="1"/set default="0"/' files/grub.cfg
|
||||
sed -i 's/set timeout=60/set timeout=1/' files/grub.cfg
|
||||
|
|
@ -57,7 +57,7 @@ files/install.iso: files/grub.cfg
|
|||
-compliance joliet_long_names
|
||||
-map files/ks.cfg ks.cfg
|
||||
-chmod 0444 ks.cfg
|
||||
-map files/grub.cfg boot/grub2/grub.cfg
|
||||
-map files/grub.cfg $(if $(_RHEL),isolinux/grub.conf,boot/grub2/grub.cfg)
|
||||
-end
|
||||
EOF
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue