probonopd / aarch64-squashfs-builder

Trying to build squashfs images for aarch64 that can be booted on Amlogic devices
MIT License
1 stars 0 forks source link

Mounting root file system ... /init: .: line 261: can't open `/scripts/casper` #1

Closed probonopd closed 4 years ago

probonopd commented 4 years ago

Getting

Mounting root file system ... /init: .: line 261: can't open /scripts/casper

Hence I want to look inside our initramfs. Was casper not installed into it correctly?

Ubuntu recently changed the format of initramfs to use lz4 compression.

How does one unpack such an initramfs?

probonopd commented 4 years ago

When I change the boot command line to boot=casperxxx, then the error message changes accordingly. Appears that whatever one enters after boot= must be present in the initrd in the scripts/ directory, and apparently /scripts/casper is not there?! Why?

probonopd commented 4 years ago

Seemingly need to use mkinitramfs rather than update-initramfs which things it has to do nothing.

probonopd commented 4 years ago

Works now