Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#2249 closed defect (fixed)

initrd customization fails in Ubuntu 20.04

Reported by: kalxas Owned by: kalxas
Priority: blocker Milestone: OSGeoLive14.0
Component: OSGeoLive Keywords: initrd
Cc: osgeolive@…

Description

While remastering the iso, this command

sudo chroot edit mkinitramfs -c lzma -o /initrd 5.4.0-26-generic

throws an error

/usr/share/initramfs-tools/hooks/cryptroot: 64: cannot open /proc/mounts: No such file
cryptsetup: WARNING: Couldn't determine root device
sed: can't read /proc/cmdline: No such file or directory
grep: /proc/swaps: No such file or directory
/usr/share/initramfs-tools/hooks/cryptroot: 64: cannot open /proc/mounts: No such file
grep: /proc/cpuinfo: No such file or directory

resulting into a non bootable inird file.

Searching through the internet I found several bug reports about mkinitramfs version in 20.04:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1835660

https://bugs.launchpad.net/ubuntu/+source/ubuntu-meta/+bug/1870260

https://unix.stackexchange.com/questions/591262/ubuntu-20-04-also-having-issues-while-unpacking-initramfs-but-changing-to-gzip

https://askubuntu.com/questions/1229964/how-to-extract-initrd-from-ubuntu-20-04-live-server-amd64-iso

https://askubuntu.com/questions/1245458/getting-the-message-0-283078-initramfs-unpacking-failed-decoding-failed-wh

https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1876562

https://unix.stackexchange.com/questions/511212/my-initrd-has-only-one-directory-after-decompressing-namely-kernel/511224#511224

https://www.shell-tips.com/linux/what-is-new-in-focal-fossa-ubuntu-20-04-lts/ --> check last section: "5. Improved Boot Time with LZ4 compression in Ubuntu 20.04 LTS"

Attachments (1)

Screenshot_20200728_163225.png (12.9 KB ) - added by kalxas 4 years ago.

Download all attachments as: .zip

Change History (7)

by kalxas, 4 years ago

comment:2 by kalxas, 4 years ago

This looks like a promising alternative for initrd customization of 20.04:

https://askubuntu.com/questions/1244562/ubuntu-20-04-logo-checking-disk-live-iso

comment:4 by kalxas, 4 years ago

Priority: blockercritical

comment:5 by kalxas, 4 years ago

Priority: criticalblocker
Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.