sicherboot icon indicating copy to clipboard operation
sicherboot copied to clipboard

Ubuntu install fails due to missing /etc/kernel/cmdline file

Open redtux opened this issue 4 years ago • 3 comments

As described in https://bugs.launchpad.net/ubuntu/+source/sicherboot/+bug/1883345 (and replied to by @julian-klode), there is a bug with the Ubuntu package, requiring the non-existent file /etc/kernel/cmdline. The installer needs to create the file (e.g. by creating a symlink to /proc/cmdline - in case the format is the same), or it needs to depend on a package that creates this file.

redtux avatar Apr 23 '21 18:04 redtux

/proc/cmdline is read-only file that shows cmdline of currently running kernel therefore it doesn't make sense to symlink it as /etc/kernel/cmdline.

Maryse47 avatar Apr 23 '21 18:04 Maryse47

Alright, but the installer cannot expect a file that is not there, and then just fail instead of creating it. In case the format is the same it could just be copied from proc or extracted from grub, or just provide an example file with all options commented out.

redtux avatar Apr 23 '21 23:04 redtux

I thin the better solution is to fallback to /proc/cmdline in case /etc/kernel/cmdline doesn't exist. In fact this is what manpage of kernel-install says:

/etc/kernel/cmdline /proc/cmdline

Read by 90-loaderentry.install. The content of the file /etc/kernel/cmdline specifies the kernel command line to use. If that file does not exist, /proc/cmdline is used.

I think it shouldn't be complicated to fix this.

Maryse47 avatar Apr 24 '21 12:04 Maryse47