[Pkg-raspi-maintainers] Bug#971883: raspi-firmware: please allow us to add customized kernel command line

Ryutaroh Matsumoto ryutaroh at ict.e.titech.ac.jp
Fri Oct 9 03:58:14 BST 2020


Package: raspi-firmware
Version: 1.20200601-3
Severity: wishlist

Dear Maintainer,

Each time /etc/kernel/postinst.d/z50-raspi-firmware is called,
it initializes /boot/firmware/cmdline.txt to its own version.
We can custimize it, for example setting ROOTPART in 
/etc/default/raspi-firmware,
as z50-raspi-firmware has the following lines:


# Default configurations, overridable at /etc/default/raspi-firmware
#
# Added an '|| true' to findmnt to avoid its failure breaking the install
# running under a container or virtual environment that does not provide
# a usable /proc
CMA=64M
ROOTPART=`findmnt -n --output=source /` || true
if [ -z "$ROOTPART" ]; then ROOTPART=/dev/mmcblk0p2;fi
KERNEL="auto"
INITRAMFS="auto"
CONSOLES="auto"
if [ -r /etc/default/raspi-firmware ]; then
        . /etc/default/raspi-firmware
fi

But user-customized kernel command line is erased. For example,
I'd like to add "systemd.unified_cgroup_hierarchy=1" to the
kernel command line. To do that, I have to edit /boot/firmware/cmdline.txt
every time after /etc/kernel/postinst.d/z50-raspi-firmware
is called.

Best regards, Ryutaroh Matsumoto



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: armhf (aarch64)
Foreign Architectures: arm64

Kernel: Linux 5.8.0-2-arm64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_CRAP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages raspi-firmware depends on:
ii  dosfstools  4.1-2
ii  dpkg        1.20.5

raspi-firmware recommends no packages.

raspi-firmware suggests no packages.

-- Configuration Files:
/etc/kernel/postinst.d/z50-raspi-firmware changed [not included]

-- no debconf information



More information about the Pkg-raspi-maintainers mailing list