mirror of
https://github.com/home-assistant/operating-system.git
synced 2026-02-23 03:05:40 +00:00
When booting the HassOS VMDK appliance disk image on QEMU with OVMF UEFI firmware, barebox numbers devices differently from other environments. This patch makes the barebox `sh` implementation expand a pathname wildcard at runtime, so that assigned disk indices != 0 will also work. This fix introduces a potential (but most likely irrelevant) bug/problem: If there is more than one disk connected to the system with a matching name assigned, the wildcard will expand to two or more pathnames, breaking the resulting `mount` command.
9 lines
234 B
Bash
9 lines
234 B
Bash
#!/bin/sh
|
|
|
|
global linux.bootargs.dyn.root="root=PARTUUID=8d3d53e3-6d49-4c38-8349-aff6859e82fd rootfstype=squashfs ro"
|
|
|
|
mkdir -p /mnt/system
|
|
mount -t ext4 /dev/disk*.hassos-kernel0 /mnt/system
|
|
|
|
global bootm.image="/mnt/system/bzImage"
|