Fix the cmdline.txt options to boot by label, not by partition

This is done in order to allow for booting from non-MMC media (i.e. USB thumbdrives)
This commit is contained in:
Gunnar Wolf 2018-08-15 19:13:27 -05:00
parent 1aa73ced0f
commit 554020cc94
1 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,12 @@ steps:
apt-get clean
rm -rf /var/lib/apt/lists
# Modify the kernel commandline we take from the firmware to boot from
# the partition labeled raspiroot instead of forcing it to mmcblk0p2
- chroot: root-fs
shell: |
sed -i 's/.dev.mmcblk0p2/LABEL=raspiroot/' ${ROOT?}/boot/firmware/cmdline.txt
# TODO(https://github.com/larswirzenius/vmdb2/issues/24): remove once vmdb
# clears /etc/resolv.conf on its own.
- shell: |