From: Oyvind Repvik Date: Sat, 21 Jan 2006 17:07:17 +0000 (+0000) Subject: slugos-init: Use tune2fs to mark the root fs with a "unique" label X-Git-Tag: Release-2010-05/1~9453^2~2598 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec31c75e94546c0ede50107715ade3920516834f;p=openembedded.git slugos-init: Use tune2fs to mark the root fs with a "unique" label turnup marks the rootfs with a label, and /boot/disk mounts the correct partition on boot. Closes slugbug #320 --- diff --git a/packages/slugos-init/files/boot/disk b/packages/slugos-init/files/boot/disk index ede33a3ee6..37505f8924 100755 --- a/packages/slugos-init/files/boot/disk +++ b/packages/slugos-init/files/boot/disk @@ -13,9 +13,9 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin # if test -n "$1" then - device="$1" + label="$1" shift - echo "boot: rootfs: mount $* $device" + echo "boot: rootfs: mount $* $label" # # wait if required test "$sleep" -gt 0 && sleep "$sleep" @@ -23,7 +23,7 @@ then # Mount read-write because before exec'ing init # this script creates the '.recovery' link to # detect failed boot. No file type is given to - if mount "$@" "$device" /mnt + if mount "$@" -L "$label" /mnt then # checkmount checks for sh, init and no # .recovery plus either mnt or initrd diff --git a/packages/slugos-init/files/turnup b/packages/slugos-init/files/turnup index 0029697c50..3bb1a55b9c 100644 --- a/packages/slugos-init/files/turnup +++ b/packages/slugos-init/files/turnup @@ -309,7 +309,7 @@ setup_fstab() { # -# boot_rootfs [options] +# boot_rootfs