You are not logged in.

#1 2024-10-31 14:36:43

bingma
Member
Registered: 2024-10-31
Posts: 7

[SOLVED]custom iso by mkarchiso says device not found

Mkarchiso produces an iso, but can't boot. I added "noautomount noswap" and cow_spacesize to kernel parameters, and copied linux-libre-firmware (mentioned in AUR) to airootfs, not using linux-firmware from pacman repo. But if I install Arch on hard disk, it can normally boot with linux-libre-firmware (mentioned in AUR) so it seems the firmware is OK, only the custom iso made by mkarchiso can't boot. When booting the custom iso:

Error: device '' not found. Skipping fsck.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel-device mapper driver.
Command failed

Last edited by bingma (2024-11-05 08:51:14)

Offline

#2 2024-10-31 15:10:59

seth
Member
Registered: 2012-09-03
Posts: 58,657

Re: [SOLVED]custom iso by mkarchiso says device not found

Please use [code][/code] tags. Edit your post in this regard.

https://bbs.archlinux.org/viewtopic.php … 1#p2205711
So is this related to ventoy?
If not, why do you require dm-crypt for? The root partition?
Have you added the relevant hooks to the mkinitcpio?

Offline

#3 2024-11-01 04:11:19

bingma
Member
Registered: 2024-10-31
Posts: 7

Re: [SOLVED]custom iso by mkarchiso says device not found

seth wrote:

No, it's not problem of Ventoy, I saw there're unwanted services in airootfs, e.g cloud-init. I don't want cloud-init to boot over network. So I emptied airootfs, but later, mkarchiso says it requires etc/shadow, so I must copy the shadow file into airootfs; But mkarchiso doesn't hint about other necessary files.

Offline

#4 2024-11-01 07:35:39

seth
Member
Registered: 2012-09-03
Posts: 58,657

Re: [SOLVED]custom iso by mkarchiso says device not found

I don't want cloud-init to boot over network. So I emptied airootfs

Maybe try to just remove the stuff you actually don't want in there instead of deleting everything (you for the most part will need) and then re-adding random, isolated files…

Offline

#5 2024-11-02 02:07:51

bingma
Member
Registered: 2024-10-31
Posts: 7

Re: [SOLVED]custom iso by mkarchiso says device not found

It looks that shadow, mkinitcpio.conf.d, mkinitcpio.d in airootfs/etc are just enough for offline booting.

Last edited by bingma (Yesterday 09:41:50)

Offline

#6 2024-11-02 07:52:21

seth
Member
Registered: 2012-09-03
Posts: 58,657

Re: [SOLVED]custom iso by mkarchiso says device not found

"Looks like"
Does the system boot?
Also you saird you wiped the entire airootfs, not only airootfs/etc

Offline

Board footer

Powered by FluxBB