Allow to modify boot console (kernel cmdline)
For headless servers with serial console only we want to change the order of consoles on the kernel commandline. In addition we add the ability to configure the kernel commandline for the arbitrary console configurations in case the default nor headless order is appropriate. Signed-off-by: Daniel F. Dickinson <[email protected]>
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
--- stage2.orig/rootfs/boot/cmdline.txt
|
||||
+++ stage2/rootfs/boot/cmdline.txt
|
||||
@@ -1 +1 @@
|
||||
-console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
|
||||
+console=serial0,115200 console=tty1 root=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh
|
||||
@@ -2,4 +2,3 @@
|
||||
02-swap.diff
|
||||
04-inputrc.diff
|
||||
05-path.diff
|
||||
07-resize-init.diff
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
sed -i -e 's%\(console=.\+ \)\?\(console=.\+ \)\?root=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait%\1\2root=ROOTDEV rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh%' "${ROOTFS_DIR}/boot/cmdline.txt"
|
||||
|
||||
|
||||
install -m 755 files/resize2fs_once "${ROOTFS_DIR}/etc/init.d/"
|
||||
|
||||
install -d "${ROOTFS_DIR}/etc/systemd/system/rc-local.service.d"
|
||||
|
||||
Reference in New Issue
Block a user