You are not logged in.

#1 2023-01-02 22:58:53

PopeRigby
Member
Registered: 2019-10-19
Posts: 109

[Solved] How can I create a system recovery OS based on the archiso?

There are instructions on the wiki for making a recovery OS using grml, but I'd like to make one based on the Arch Install ISO, as it's a little more comfortable to me.

I know I can create one with the `archiso` tool, but I'm not sure how to get it to boot with a systemd-boot entry. I extracted the vmlinuz-linux, initramfs, and airootfs.sfs from the ISO, and put in in /boot/rescue, and added this systemd-boot entry:

title   System Rescue
linux   /rescue/vmlinuz-linux
initrd  /rescue/initramfs-linux.img
options apm=power-off boot=live live-media-path=/rescue/

This unfortunately fails to boot though:

  
:: Mounting `/dev/disk/by-label/` to `/run/archiso/bootmnt`
Waiting 30 seconds for device /dev/disk/by-label/ ...
ERROR: `/dev/disk/by-label` device did not show up after 30 seconds...

So, what files should I move to /boot/rescue, and what should I put in my systemd-boot entry?

Last edited by PopeRigby (2023-01-04 01:42:41)


"I even found myself driving by convenience stores... that weren't on the way home."

Offline

#2 2023-01-02 23:51:18

GeorgeJP
Member
From: Czech Republic
Registered: 2020-01-28
Posts: 158

Re: [Solved] How can I create a system recovery OS based on the archiso?

I do have extracted files in folder "/EFI/ArchISO":

/boot/EFI/ArchISO
├── initramfs-linux.img
├── vmlinuz-linux
└── x86_64
    └── airootfs.sfs

My EFI partition have label "EFISYS".
Loader entry file "/boot/loader/entries/archiso.conf":

title    Arch Linux
version  archiso
linux    /EFI/ArchISO/vmlinuz-linux
initrd   /amd-ucode.img
initrd   /EFI/ArchISO/initramfs-linux.img
options  archisobasedir=EFI/ArchISO archisolabel=EFISYS copytoram

Offline

#3 2023-01-04 01:42:10

PopeRigby
Member
Registered: 2019-10-19
Posts: 109

Re: [Solved] How can I create a system recovery OS based on the archiso?

That worked perfectly. Thank you!


"I even found myself driving by convenience stores... that weren't on the way home."

Offline

Board footer

Powered by FluxBB