mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
include defaults
This commit is contained in:
parent
500928f580
commit
6b9ca03391
1 changed files with 3 additions and 1 deletions
4
.github/workflows/build-and-test.yml
vendored
4
.github/workflows/build-and-test.yml
vendored
|
|
@ -166,10 +166,12 @@ jobs:
|
||||||
|
|
||||||
- name: Add anaconda.ks to ISO
|
- name: Add anaconda.ks to ISO
|
||||||
run: |
|
run: |
|
||||||
|
checkisomd5 ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso
|
||||||
sudo mkdir /mnt/iso
|
sudo mkdir /mnt/iso
|
||||||
sudo mount -o loop ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso /mnt/iso
|
sudo mount -o loop ${{ env.IMAGE_NAME }}-${{ env.VERSION }}.iso /mnt/iso
|
||||||
cp /mnt/iso/boot/grub2/grub.cfg grub.cfg
|
cp /mnt/iso/boot/grub2/grub.cfg grub.cfg
|
||||||
sed -i 's/quiet/console=ttyS0,115200n8 inst.ks=cdrom:\/ks.cfg/' grub.cfg
|
sed -i 's/quiet/console=ttyS0,115200n8 inst.ks=cdrom:\/ks.cfg/' grub.cfg
|
||||||
|
sed -i 's/set default="1"/set default="0"/' grub.cfg
|
||||||
cat << EOF > ks.cfg
|
cat << EOF > ks.cfg
|
||||||
lang en_US.UTF-8
|
lang en_US.UTF-8
|
||||||
keyboard us
|
keyboard us
|
||||||
|
|
@ -179,6 +181,7 @@ jobs:
|
||||||
autopart
|
autopart
|
||||||
reboot
|
reboot
|
||||||
user --name=core --groups=wheel --password=foobar
|
user --name=core --groups=wheel --password=foobar
|
||||||
|
%ksappend /usr/share/anaconda/interactive-defaults.ks
|
||||||
EOF
|
EOF
|
||||||
xorriso -dialog on << EOF
|
xorriso -dialog on << EOF
|
||||||
-indev base-39.iso
|
-indev base-39.iso
|
||||||
|
|
@ -189,7 +192,6 @@ jobs:
|
||||||
-map grub.cfg boot/grub2/grub.cfg
|
-map grub.cfg boot/grub2/grub.cfg
|
||||||
-end
|
-end
|
||||||
EOF
|
EOF
|
||||||
implantisomd5 test.iso
|
|
||||||
|
|
||||||
- name: Start a VM
|
- name: Start a VM
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue