diff options
Diffstat (limited to 'meta/recipes-core/initrdscripts/initramfs-framework/finish')
-rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/finish | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/finish b/meta/recipes-core/initrdscripts/initramfs-framework/finish index d09bbb8bed..717383ebac 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/finish +++ b/meta/recipes-core/initrdscripts/initramfs-framework/finish | |||
@@ -8,39 +8,6 @@ finish_enabled() { | |||
8 | 8 | ||
9 | finish_run() { | 9 | finish_run() { |
10 | if [ -n "$ROOTFS_DIR" ]; then | 10 | if [ -n "$ROOTFS_DIR" ]; then |
11 | if [ -n "$bootparam_rootdelay" ]; then | ||
12 | debug "Sleeping for $rootdelay second(s) to wait root to settle..." | ||
13 | sleep $bootparam_rootdelay | ||
14 | fi | ||
15 | |||
16 | if [ -n "$bootparam_root" ]; then | ||
17 | debug "No e2fs compatible filesystem has been mounted, mounting $bootparam_root..." | ||
18 | |||
19 | if [ "`echo ${bootparam_root} | cut -c1-5`" = "UUID=" ]; then | ||
20 | root_uuid=`echo $bootparam_root | cut -c6-` | ||
21 | bootparam_root="/dev/disk/by-uuid/$root_uuid" | ||
22 | fi | ||
23 | |||
24 | if [ -e "$bootparam_root" ]; then | ||
25 | flags="" | ||
26 | if [ -n "$bootparam_ro" ]; then | ||
27 | if [ -n "$bootparam_rootflags" ]; then | ||
28 | bootparam_rootflags="$bootparam_rootflags," | ||
29 | fi | ||
30 | bootparam_rootflags="${bootparam_rootflags}ro" | ||
31 | fi | ||
32 | if [ -n "$bootparam_rootflags" ]; then | ||
33 | flags="$flags -o$bootparam_rootflags" | ||
34 | fi | ||
35 | if [ -n "$bootparam_rootfstype" ]; then | ||
36 | flags="$flags -t$bootparam_rootfstype" | ||
37 | fi | ||
38 | mount $flags $bootparam_root $ROOTFS_DIR | ||
39 | else | ||
40 | msg "root '$bootparam_root' doesn't exist." | ||
41 | fi | ||
42 | fi | ||
43 | |||
44 | if [ ! -d $ROOTFS_DIR/dev ]; then | 11 | if [ ! -d $ROOTFS_DIR/dev ]; then |
45 | fatal "ERROR: There's no '/dev' on rootfs." | 12 | fatal "ERROR: There's no '/dev' on rootfs." |
46 | fi | 13 | fi |