[Help] Can not generate the bootable Live CD image on aarch64

Issues related to applications and software problems and general support
Post Reply
LochiaC
Posts: 1
Joined: 2024/02/05 10:44:18

[Help] Can not generate the bootable Live CD image on aarch64

Post by LochiaC » 2024/02/05 11:22:26

Hi
I'm new in CentOS.
I try to build the live image on aarch64.
Here are my steps.
[Install the EPEL RPM]
command:
  • sudo dnf config-manager --set-enabled crb
  • sudo dnf install epel-release epel-next-release
[Install the livecd creator]
command:
  • sudo dnf install livecd-tools
[Generate the Live CD image]
command:
  • livecd-creator --config=test_kickstart.ks --fslabel=YourLiveCD
test_kickstart.ks:

Code: Select all

lang en_GB.UTF-8
keyboard us
timezone Asia/Shanghai --isUtc

#selinux --enforcing
selinux --disabled

#firewall --enabled --service=cockpit
firewall --disabled

#Clear the Master Boot Record
zerombr
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part / --size 8192 --fstype ext4
part /boot/efi --fstype="ext4" --size=200
part /boot --fstype="ext4" --size=1024
part swap --fstype="swap" --size=2048
part /run/initramfs/live --fstype="ext4" --grow --size=1

#Root password
auth --useshadow --enablemd5
rootpw --plaintext ROOTPassWorD
repo --name=base --baseurl=https://mirror.stream.centos.org/9-stream/BaseOS/aarch64/os

%packages
@core
kernel
bash
openssh-server
shim
grub2
grub2-efi
grub2-tools
grub2-efi-aa64-cdboot
efibootmgr
rootfiles
unzip
net-tools

%end

%post

%end
[Create a USB key with the LiveCD image]
command:
  • dd if=YourLiveCD.img of=/dev/sda bs=4M status=progress
After the steps and reboot the system,
the computer can not boot into the USB key.
Also the BIOS can not identify the USB key as OS.
I try to mount the image,
there are 2 folders in the image.
isolinux and LiveOS
There are no data in the isolinux folder.
And squashfs.img in the LiveOS folder.
I think the issue may cause by there are no data in the isolinux which use to boot up the system.

[system information]
command: uname -r
5.14.0-412.e19.aarch64
os: CentOS 9 Stream

Thanks for your help.
If you need more system information, please let me know.

Post Reply