summaryrefslogtreecommitdiffstats
path: root/recipes-sota/ostree-initrd/files/init.sh
diff options
context:
space:
mode:
authorPhil Wise <phil@advancedtelematic.com>2017-04-21 09:57:01 +0200
committerPhil Wise <phil@advancedtelematic.com>2017-04-21 09:57:01 +0200
commit47921feae0a5eaa41b18c5d15da9c1f6619b40c5 (patch)
tree05e707e646281d0af228c511fed8dfeb0ca67099 /recipes-sota/ostree-initrd/files/init.sh
parentc5ca4c893bf6336bb3675b2aa24dc8c6e44fc82f (diff)
downloadmeta-updater-47921feae0a5eaa41b18c5d15da9c1f6619b40c5.tar.gz
Mount the root filesystem by label rather than path
Support identifying the root filesystem via a kernel command line like 'ostree_root=LABEL=mylabel'. Also make it mount a filesystem labeled 'otaroot' by default. This means it is possible to test the Minnowboard build in Qemu.
Diffstat (limited to 'recipes-sota/ostree-initrd/files/init.sh')
-rw-r--r--recipes-sota/ostree-initrd/files/init.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-sota/ostree-initrd/files/init.sh b/recipes-sota/ostree-initrd/files/init.sh
index 806a7b1..1814ca3 100644
--- a/recipes-sota/ostree-initrd/files/init.sh
+++ b/recipes-sota/ostree-initrd/files/init.sh
@@ -29,10 +29,11 @@ get_ostree_sysroot() {
29 for opt in `cat /proc/cmdline`; do 29 for opt in `cat /proc/cmdline`; do
30 arg=`echo $opt | cut -d'=' -f1` 30 arg=`echo $opt | cut -d'=' -f1`
31 if [ $arg == "ostree_root" ]; then 31 if [ $arg == "ostree_root" ]; then
32 echo $opt | cut -d'=' -f2 32 echo $opt | cut -d'=' -f2-
33 return 33 return
34 fi 34 fi
35 done 35 done
36 echo "LABEL=otaroot"
36} 37}
37 38
38export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib/ostree 39export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib/ostree