From 716fdbf18ca12feb81e26df729a5b8969e394e96 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 17 Jun 2015 13:00:36 +0200 Subject: blspec: Automatically append rootarg This patch makes it possible to automatically add a suitable root= option for booting Linux from the same filesystem on which the bootspec entry has been found. This adds an additional 'linux-appendroot' option to bootspec which if set to 'true' will cause barebox to automatically add a root= option. This currently works for NFS, UBIFS and regular block devices like ATA, SD/MMC using the root=PARTUUID= mechanism. Signed-off-by: Sascha Hauer --- Documentation/user/booting-linux.rst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Documentation/user/booting-linux.rst') diff --git a/Documentation/user/booting-linux.rst b/Documentation/user/booting-linux.rst index 6e7d1550bf..39084e5afe 100644 --- a/Documentation/user/booting-linux.rst +++ b/Documentation/user/booting-linux.rst @@ -205,6 +205,13 @@ compatible NFS URI string must be passed to the boot command: boot nfs://nfshost//path/ +Additionally to the options defined in the original spec barebox understands the +``linux-appendroot`` option. This is a boolean value and if set to ``true`` barebox +will automatically append a ``root=`` string to the Linux commandline based on the +device where the entry is found on. This makes it possible to use the same rootfs +image on different devices without having to specify a different root= option each +time. + Network boot ------------ -- cgit v1.2.3