[OSGeoLive] #2249: initrd customization fails in Ubuntu 20.04

OSGeoLive trac_osgeolive at osgeo.org
Tue Jul 28 03:02:51 PDT 2020


#2249: initrd customization fails in Ubuntu 20.04
-----------------------+---------------------------
 Reporter:  kalxas     |      Owner:  kalxas
     Type:  defect     |     Status:  assigned
 Priority:  blocker    |  Milestone:  OSGeoLive14.0
Component:  OSGeoLive  |   Keywords:  initrd
-----------------------+---------------------------
 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"

-- 
Ticket URL: <https://trac.osgeo.org/osgeolive/ticket/2249>
OSGeoLive <https://live.osgeo.org/>
self-contained bootable DVD, USB thumb drive or Virtual Machine based on Lubuntu, that allows you to try a wide variety of open source geospatial software without installing anything.


More information about the osgeolive mailing list