diff options
author | Thomas Bächler <thomas@archlinux.org> | 2011-06-07 20:35:41 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2011-06-07 20:58:20 +0200 |
commit | 92a9fa8ee76917c4596366ce9be0e8b7d216d33d (patch) | |
tree | d6d607a3c2a8962040d8289ab039274669eadc34 /init_functions | |
parent | b7e37eb94bf4695c42ff38a9e760f545644242da (diff) | |
download | mkinitcpio-92a9fa8ee76917c4596366ce9be0e8b7d216d33d.tar.gz mkinitcpio-92a9fa8ee76917c4596366ce9be0e8b7d216d33d.tar.xz |
default_mount_handler: Only try to manually create the root device if devtmpfs is not used.
Diffstat (limited to 'init_functions')
-rw-r--r-- | init_functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init_functions b/init_functions index a94f525..ef938b4 100644 --- a/init_functions +++ b/init_functions @@ -86,7 +86,7 @@ default_mount_handler() { msg "Root device '${root}' doesn't exist. Attempting to create it." major="" minor="" - if [ ${root:0:5} = "/dev/" ]; then + if [ ${devtmpfs_mounted} -eq 0 -a ${root:0:5} = "/dev/" ]; then # It might be a block device (/dev/sda) -> /sys/class/block/sda/dev if [ -e /sys/class/block/${root:5}/dev ]; then IFS=':' read major minor < "/sys/class/block/${root:5}/dev" |