From 46ead8a58dcc3e267627e329cd73f2a1013a7003 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Thu, 21 Oct 2021 16:32:55 +0200 Subject: [PATCH] Improve pattern when replacing root=/dev/mmcblk0p2 in cmdline.txt Let's make it clear what we are replacing. --- raspi_master.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspi_master.yaml b/raspi_master.yaml index 9a8cb3f..41b1a90 100644 --- a/raspi_master.yaml +++ b/raspi_master.yaml @@ -144,7 +144,7 @@ steps: - chroot: / shell: | sed -i 's/^/console=__SERIAL_CONSOLE__ /' /boot/firmware/cmdline.txt - sed -i 's/.dev.mmcblk0p2/LABEL=RASPIROOT/' /boot/firmware/cmdline.txt + sed -i 's#root=/dev/mmcblk0p2#root=LABEL=RASPIROOT#' /boot/firmware/cmdline.txt # TODO(https://github.com/larswirzenius/vmdb2/issues/24): remove once vmdb # clears /etc/resolv.conf on its own.