#10 VooDoo!!!
Merged 2 years ago by bstinson. Opened 2 years ago by hrw.
centos/ hrw/kickstarts hrw-aarch64  into  master

make sure that %post exits with errorcode 0
Marcin Juszkiewicz • 2 years ago  
file modified
+2 -1

@@ -138,6 +138,8 @@ 

  # reorder console entries

  sed -i 's/console=tty0/console=tty0 console=ttyS0,115200n8/' /boot/grub2/grub.cfg


+ true





@@ -188,7 +190,6 @@ 




- firewalld




Adding one simple 'echo' command makes whole process works
automatically. Without it I got "Press ENTER to continue" right after
dnf uninstalls firewalld and then several times again.

Therefore I declare it voodoo.

This is script I used to test does it work:

11:46 (8s) hrw@j13-qrep-04:kickstarts$ cat run.sh 


sudo virt-install --name $1 \
        --destroy-on-exit \
        --initrd-inject $KICKSTART \
        --extra-args "inst.ks=file:/$KICKSTART inst.proxy= quiet inst.repo=http://mirror.centos.org/centos/8/BaseOS/aarch64/os/" \
        --ram 8192 \
        --vcpus 8 \
        --os-variant rhel8.0 \
        --location http://mirror.centos.org/centos/8/BaseOS/aarch64/os/ \
        --disk path=/var/lib/libvirt/images/${1}.qcow2,format=qcow2,size=18,cache=none,bus=virtio


removed as it is repeated here

It can be other command too. I had "truncate" here before.

rebased onto 46ab792

2 years ago

rebased onto 4ef8869

2 years ago

13:40 < hrw> have some idea but need x86 cloud image
13:56 < Arrfab> hrw: what's your "idea" ?
14:09 < hrw> Arrfab: last command is 'sed' - it errors out as /boot/grub2/grub.cfg is not present == whole %post errors out
14:09 < hrw> Arrfab: add 'true' in next line == %post passes, everyone is happy
14:09 < Arrfab> hrw: oh, that would be a good catch .. so maybe trying to remove the sed line and it would work ?
14:10 < Arrfab> but same would probably apply for x86_64 and ppc64le but they can build fine
14:10 < hrw> Arrfab: fixfiles before it also errors out as it tries to process not existing files

rebased onto 289e173

2 years ago

rebased onto 289e173

2 years ago

Pull-Request has been merged by bstinson

2 years ago