Improve pattern when replacing root=/dev/mmcblk0p2 in cmdline.txt

Let's make it clear what we are replacing.
This commit is contained in:
Cyril Brulebois 2021-10-21 16:32:55 +02:00
parent 3f9e671fed
commit 46ead8a58d
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ steps:
- chroot: / - chroot: /
shell: | shell: |
sed -i 's/^/console=__SERIAL_CONSOLE__ /' /boot/firmware/cmdline.txt 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 # TODO(https://github.com/larswirzenius/vmdb2/issues/24): remove once vmdb
# clears /etc/resolv.conf on its own. # clears /etc/resolv.conf on its own.