Skip to content

Commit d07eef3

Browse files
committed
inject-cmdline-to-template.sh: change default_cmdline for minimal flavor
use `root=/dev/vda1` instead of `root=LABEL=cloudimg-rootfs` Signed-off-by: Norio Nomura <[email protected]>
1 parent 520df46 commit d07eef3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hack/inject-cmdline-to-template.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ done
5757
if [[ -z ${location} ]]; then
5858
echo "Failed to get the image location for ${template}" >&2
5959
exit 1
60+
elif [[ ${location} == https://cloud-images.ubuntu.com/minimal/* ]]; then
61+
readonly default_cmdline="root=/dev/vda1 ro console=tty1 console=ttyAMA0"
6062
elif [[ ${location} == https://cloud-images.ubuntu.com/* ]]; then
6163
readonly default_cmdline="root=LABEL=cloudimg-rootfs ro console=tty1 console=ttyAMA0"
6264
else

0 commit comments

Comments
 (0)