[PATCH RFT] blspec: support boot /dev/disk0.rootfs to mean boot disk0.rootfs

Marco Felsch m.felsch at pengutronix.de
Mon Jun 19 08:08:59 PDT 2023


Hi Ahmad,

On 23-06-19, Ahmad Fatoum wrote:
> boot /dev/disk0.rootfs would always fail:
> 
>   Nothing bootable found on '/dev/disk0.rootfs'
>   Nothing bootable found
> 
> boot /mnt/disk0.rootfs and boot disk0.rootfs would however work.
> This can be surprising to users, so just skip over /dev if supplied.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> I am not sure why this wasn't the case before. Any ambiguity in doing it
> this way? Change still needs to be tested.

According commands/boot.c help message:

| "BOOTSRC can be:"
| "- a filename under /env/boot/"
| "- a full path to a boot script"
| "- a full path to a bootspec entry"
| "- a device name"
| "- a partition name under /dev/"
| "- a full path to a directory which"
| "   - contains boot scripts, or"
| "   - contains a loader/entries/ directory containing bootspec entries"

the 'full path' to a device is not suported yet. Should that be fixed
within the boot-cmd?

Regards,
  Marco



More information about the barebox mailing list