Skip to main content
Topic: LiveISO for an Artix-based distribution (Read 546 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

LiveISO for an Artix-based distribution

Sorry for my bad English because I'm not a native speaker.

So I distributed an Artix-based distribution from the LFS guide, with default Linux kernel from Artix. I compressed the root file system, generated a initramfs that compatible to boot with all machine and made the image file with isolinux. The problem is I need to mount the image file to tmpfs, setup loop device from image root filesystem and mount it to the new root.  I check out the init file in the initrd / initramfs from some distributions and generally, it looks like:
Code: [Select]
export cdrom=<cdrom mount path>
export rootpath=$cdrom/<root filesystem>
mount /dev/sr0 $cdrom
losetup /dev/loop0 $rootpath
mount -t squashfs /dev/loop0 /newroot
exec switch_root /newroot /sbin/init

But Arch-based distribution is different, the LiveISO init in the initramfs isn't modified, so I look at the isolinux.cfg/ kernel.cfg (in Artix) but nothing special is appended to the boot image boot process (initrd, Arch contains some variable).

Can you tell me how to mount the root filesystem from the image by modifying the init or anything in the system?
Any help would be appreciated! Sorry for my misunderstand!