LiveISO for an Artix-based distribution
by kun_hanh from LinuxQuestions.org on (#5M6GQ)
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: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/initBut 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! If you need any information, please tell me!
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: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/initBut 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! If you need any information, please tell me!