Ignore:
Timestamp:
2011-04-05T17:09:32+02:00 (5 years ago)
Author:
acinonyx
Message:

[package] base-files: fix minor problem in init.d/boot

The script tests for the existance of /dev/root with test -e which fails if
/dev/root is a dangling symlink making the call to ln fail.

Signed-off-by: Justus Winter <4winter@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/etc/init.d/boot

    r19428 r26483  
    7575 
    7676        # create /dev/root if it doesn't exist 
    77         [ -e /dev/root ] || { 
     77        [ -e /dev/root -o -L /dev/root ] || { 
    7878                rootdev=$(awk 'BEGIN { RS=" "; FS="="; } $1 == "root" { print $2 }' < /proc/cmdline) 
    7979                [ -n "$rootdev" ] && ln -s "$rootdev" /dev/root 
Note: See TracChangeset for help on using the changeset viewer.