diff options
| author | Gunnar Wolf <gwolf@gwolf.org> | 2018-08-15 19:13:27 -0500 |
|---|---|---|
| committer | Gunnar Wolf <gwolf@gwolf.org> | 2018-08-15 19:13:27 -0500 |
| commit | 554020cc949be4803e83bd4bd9f1f76c2ad73d10 (patch) | |
| tree | d213e9caee4016cc7786ffbc19cdaa95f77fbc8a | |
| parent | 1aa73ced0f25cfeddda16a0261b088c6ec32f8a0 (diff) | |
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)
| -rw-r--r-- | raspi3.yaml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/raspi3.yaml b/raspi3.yaml index 4dbebdc..3ba7880 100644 --- a/raspi3.yaml +++ b/raspi3.yaml @@ -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: | |
