platform/upstream/dracut.git
11 years agoresetting manifest requested domain to floor
Alexandru Cornea [Fri, 28 Jun 2013 18:31:10 +0000 (21:31 +0300)]
resetting manifest requested domain to floor

11 years agoUpdate package groups
Anas Nashif [Mon, 18 Mar 2013 21:01:36 +0000 (14:01 -0700)]
Update package groups

11 years agoupdate to 025
Anas Nashif [Tue, 12 Feb 2013 00:24:28 +0000 (16:24 -0800)]
update to 025

11 years agocleanup spec
Anas Nashif [Sun, 3 Feb 2013 01:29:08 +0000 (17:29 -0800)]
cleanup spec

11 years agoadd packaging
Anas Nashif [Thu, 25 Oct 2012 12:48:09 +0000 (05:48 -0700)]
add packaging

11 years agoadd packaging
Anas Nashif [Thu, 25 Oct 2012 12:47:20 +0000 (05:47 -0700)]
add packaging

11 years agodracut-032 upstream 032 upstream/032
Harald Hoyer [Tue, 20 Aug 2013 10:39:57 +0000 (12:39 +0200)]
dracut-032

11 years agoadd newline to cmdline config files
Harald Hoyer [Tue, 20 Aug 2013 11:08:11 +0000 (13:08 +0200)]
add newline to cmdline config files

11 years agodracut.sh: recognize swap entries in fstab with mountpoint "none"
Harald Hoyer [Tue, 20 Aug 2013 10:01:17 +0000 (12:01 +0200)]
dracut.sh: recognize swap entries in fstab with mountpoint "none"

11 years agoadd persistent_policy configuration option
Harald Hoyer [Tue, 20 Aug 2013 08:28:14 +0000 (10:28 +0200)]
add persistent_policy configuration option

11 years agodracut.conf.5.asc: correct ro_mnt documentation
Harald Hoyer [Tue, 20 Aug 2013 08:27:29 +0000 (10:27 +0200)]
dracut.conf.5.asc: correct ro_mnt documentation

11 years agodracut-functions.sh:dracut_module_included() check with spaces
Harald Hoyer [Tue, 20 Aug 2013 07:03:22 +0000 (09:03 +0200)]
dracut-functions.sh:dracut_module_included() check with spaces

check also for surrounding spaces in the module strings

11 years agodracut.sh: fixed checking for FIPS mode
Harald Hoyer [Tue, 20 Aug 2013 07:02:48 +0000 (09:02 +0200)]
dracut.sh: fixed checking for FIPS mode

11 years agosystemd: pre-pivot hooks runs after /sysroot is mounted
WANG Chao [Fri, 16 Aug 2013 05:13:28 +0000 (13:13 +0800)]
systemd: pre-pivot hooks runs after /sysroot is mounted

If rootflags=nofail, sysroot.mount won't strictly run "Before"
initrd-root-fs.target. So we need to order dracut-pre-pivot after
sysroot.mount.

11 years agodracut.sh: Fix [no-]early-microcode parameter and add documentation.
Daniel Schaal [Fri, 16 Aug 2013 21:16:15 +0000 (23:16 +0200)]
dracut.sh: Fix [no-]early-microcode parameter and add documentation.

[no-]early-microcode was missing from getopt argument list.

Let arguments passed by command line override config files.

11 years agodracut.sh: add --persistent-policy option
Harald Hoyer [Fri, 16 Aug 2013 09:52:07 +0000 (11:52 +0200)]
dracut.sh: add --persistent-policy option

--persistent-policy <policy>:
    Use <policy> to address disks and partitions.
    <policy> can be any directory name found in /dev/disk.
    E.g. "by-uuid", "by-label"

11 years agobase/dracut-lib.sh: move warn() definition before usage
Harald Hoyer [Fri, 16 Aug 2013 09:00:45 +0000 (11:00 +0200)]
base/dracut-lib.sh: move warn() definition before usage

11 years agodracut.spec: correct License string
Harald Hoyer [Fri, 16 Aug 2013 09:00:21 +0000 (11:00 +0200)]
dracut.spec: correct License string

11 years agodracut.spec: add bash module
Harald Hoyer [Thu, 15 Aug 2013 14:24:13 +0000 (16:24 +0200)]
dracut.spec: add bash module

11 years agoadd parameter --print-cmdline
Harald Hoyer [Thu, 15 Aug 2013 13:52:22 +0000 (15:52 +0200)]
add parameter --print-cmdline

This prints the kernel command line parameters for the current disk
layout.

$ dracut --print-cmdline
rd.luks.uuid=luks-e68c8906-6542-4a26-83c4-91b4dd9f0471
rd.lvm.lv=debian/root rd.lvm.lv=debian/usr root=/dev/mapper/debian-root
rootflags=rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered
rootfstype=ext4

11 years agoresurrect TEST-14-IMSM
Harald Hoyer [Thu, 15 Aug 2013 13:54:18 +0000 (15:54 +0200)]
resurrect TEST-14-IMSM

11 years agodracut-functions.sh: add find_mp_fsopts
Harald Hoyer [Thu, 15 Aug 2013 10:23:04 +0000 (12:23 +0200)]
dracut-functions.sh: add find_mp_fsopts

11 years agodracut-functions.sh: no more 'echo'
Harald Hoyer [Thu, 15 Aug 2013 10:22:26 +0000 (12:22 +0200)]
dracut-functions.sh: no more 'echo'

11 years agorootfs-block: search all host_devs for a journal device
Harald Hoyer [Thu, 15 Aug 2013 08:56:31 +0000 (10:56 +0200)]
rootfs-block: search all host_devs for a journal device

11 years agodracut-functions.sh: add find_dev_fsopts()
Harald Hoyer [Thu, 15 Aug 2013 09:14:14 +0000 (11:14 +0200)]
dracut-functions.sh: add find_dev_fsopts()

11 years agoCreate initramfs without using udevadm
Harald Hoyer [Thu, 15 Aug 2013 08:44:20 +0000 (10:44 +0200)]
Create initramfs without using udevadm

This enables building a hostonly image, without the udev database
populated.

11 years agotestsuite: fixed network interface names
Harald Hoyer [Thu, 15 Aug 2013 08:25:19 +0000 (10:25 +0200)]
testsuite: fixed network interface names

11 years agodracut.spec: dracut-network requires dhclient
Harald Hoyer [Thu, 15 Aug 2013 06:32:38 +0000 (08:32 +0200)]
dracut.spec: dracut-network requires dhclient

11 years agoTEST-12-RAID-DEG: enter UUID in crypttab rather than md0
Harald Hoyer [Wed, 14 Aug 2013 13:02:46 +0000 (15:02 +0200)]
TEST-12-RAID-DEG: enter UUID in crypttab rather than md0

11 years agoMakefile: do syncheck before creating the archive or rpm
Harald Hoyer [Wed, 14 Aug 2013 10:54:48 +0000 (12:54 +0200)]
Makefile: do syncheck before creating the archive or rpm

11 years agodracut-functions.sh: fixed vercmp()
Harald Hoyer [Wed, 14 Aug 2013 10:54:33 +0000 (12:54 +0200)]
dracut-functions.sh: fixed vercmp()

11 years agonetwork: also wait for ethernet interfaces to setup
WANG Chao [Mon, 12 Aug 2013 08:43:52 +0000 (16:43 +0800)]
network: also wait for ethernet interfaces to setup

We only wait for master interfaces for bridge/bonding/team/vlan case.
If none of these complex network is configured, we should wait for
ethernet interface (bootdev) instead.

11 years agoshutdown: fixed killall_proc_mountpoint()
Harald Hoyer [Wed, 14 Aug 2013 08:33:19 +0000 (10:33 +0200)]
shutdown: fixed killall_proc_mountpoint()

11 years agodracut-functions.sh: if no libdirs are set, take the ld.so.cache paths
Harald Hoyer [Tue, 13 Aug 2013 18:00:55 +0000 (20:00 +0200)]
dracut-functions.sh: if no libdirs are set, take the ld.so.cache paths

11 years agocrypt: only manually activate systemd-cryptsetup, if not in crypttab
Harald Hoyer [Tue, 13 Aug 2013 08:26:29 +0000 (10:26 +0200)]
crypt: only manually activate systemd-cryptsetup, if not in crypttab

Only additional rd.luks.UUID have to be manually activated.

11 years agocrypt/crypt-run-generator: also skip if UUID match in crypttab
Harald Hoyer [Mon, 12 Aug 2013 23:20:06 +0000 (01:20 +0200)]
crypt/crypt-run-generator: also skip if UUID match in crypttab

11 years agoadd bash module
Harald Hoyer [Mon, 12 Aug 2013 22:39:10 +0000 (00:39 +0200)]
add bash module

11 years agocrypt/module-setup.sh: use crypttab in hostonly and don't install cmdline
Harald Hoyer [Mon, 12 Aug 2013 22:35:10 +0000 (00:35 +0200)]
crypt/module-setup.sh: use crypttab in hostonly and don't install cmdline

11 years agofs-lib/module-setup.sh: install fsck and fsck.ext*
Harald Hoyer [Mon, 12 Aug 2013 22:19:05 +0000 (00:19 +0200)]
fs-lib/module-setup.sh: install fsck and fsck.ext*

11 years agodracut.sh: always assemble /usr in the initramfs
Harald Hoyer [Mon, 12 Aug 2013 21:55:50 +0000 (23:55 +0200)]
dracut.sh: always assemble /usr in the initramfs

11 years agodracut.sh: always assemble /usr device in initramfs
Harald Hoyer [Mon, 12 Aug 2013 21:50:30 +0000 (23:50 +0200)]
dracut.sh: always assemble /usr device in initramfs

11 years agolsinitrd.sh: fixed modules.txt path
Harald Hoyer [Mon, 12 Aug 2013 21:50:07 +0000 (23:50 +0200)]
lsinitrd.sh: fixed modules.txt path

11 years agosystemd/dracut-initqueue.sh: added missing "then"
Harald Hoyer [Mon, 12 Aug 2013 11:08:17 +0000 (13:08 +0200)]
systemd/dracut-initqueue.sh: added missing "then"

11 years agobase: don't install switch_root, if systemd is used
Harald Hoyer [Mon, 12 Aug 2013 10:57:13 +0000 (12:57 +0200)]
base: don't install switch_root, if systemd is used

11 years agodracut.sh: fixed typo
Harald Hoyer [Mon, 12 Aug 2013 10:46:35 +0000 (12:46 +0200)]
dracut.sh: fixed typo

11 years agodracut.sh: use local lsinitrd.sh for "-l"
Harald Hoyer [Mon, 12 Aug 2013 10:46:03 +0000 (12:46 +0200)]
dracut.sh: use local lsinitrd.sh for "-l"

11 years agodracut-logger.sh: saveguard logger with --
Harald Hoyer [Mon, 12 Aug 2013 10:44:10 +0000 (12:44 +0200)]
dracut-logger.sh: saveguard logger with --

11 years agodracut-logger.sh: do not unset logging messages if sysloglvl is set
Harald Hoyer [Fri, 9 Aug 2013 13:47:30 +0000 (15:47 +0200)]
dracut-logger.sh: do not unset logging messages if sysloglvl is set

11 years agolsinitrd.sh: fixed case
Harald Hoyer [Fri, 9 Aug 2013 13:35:20 +0000 (15:35 +0200)]
lsinitrd.sh: fixed case

11 years agoomit drivers fix
dyoung@redhat.com [Thu, 8 Aug 2013 06:05:02 +0000 (14:05 +0800)]
omit drivers fix

Because omit_drivers list use underline always, so when maching with it
the _mod need to be converted as well or sometimes omit-drivers will fail
silently.

Fix this by replace '-' with '_' in instmods function.

Signed-off-by: Dave Young <dyoung@redhat.com>
11 years agomultipath: need_shutdown if multipath devices exist
Harald Hoyer [Fri, 9 Aug 2013 08:44:34 +0000 (10:44 +0200)]
multipath: need_shutdown if multipath devices exist

https://bugzilla.redhat.com/show_bug.cgi?id=994913

11 years agoiscsi/module-setup.sh: install some modules regardless of hostonly
Harald Hoyer [Fri, 9 Aug 2013 08:33:27 +0000 (10:33 +0200)]
iscsi/module-setup.sh: install some modules regardless of hostonly

11 years agonetwork/net-lib.sh: fix ibft interface configuration
Harald Hoyer [Wed, 7 Aug 2013 14:05:03 +0000 (16:05 +0200)]
network/net-lib.sh: fix ibft interface configuration

also skip ibft$num names, which have been already given

https://bugzilla.redhat.com/show_bug.cgi?id=989944

11 years agocrypt: Fix typo--/etc/crypttab not /etc/cryptab
James Lee [Tue, 6 Aug 2013 15:25:58 +0000 (11:25 -0400)]
crypt: Fix typo--/etc/crypttab not /etc/cryptab

1ae8b8a breaks the crypt module for those who use keyfiles due to a
typo leading to the exclusion of /etc/crypttab from the initrd.

11 years agodracut.sh: check the value of --kver
Harald Hoyer [Tue, 6 Aug 2013 14:56:42 +0000 (16:56 +0200)]
dracut.sh: check the value of --kver

https://bugzilla.redhat.com/show_bug.cgi?id=993327

11 years agodracut.sh: do not strip in FIPS mode
Harald Hoyer [Tue, 6 Aug 2013 09:43:58 +0000 (11:43 +0200)]
dracut.sh: do not strip in FIPS mode

11 years ago51-dracut-rescue.install: fixed rescue image creation
Harald Hoyer [Tue, 6 Aug 2013 09:01:45 +0000 (11:01 +0200)]
51-dracut-rescue.install: fixed rescue image creation

11 years agodracut-functions.sh: inst_multiple == dracut_install
Harald Hoyer [Mon, 5 Aug 2013 10:10:12 +0000 (12:10 +0200)]
dracut-functions.sh: inst_multiple == dracut_install

11 years agodracut-functions.sh: removed non dracut-install shell functions
Harald Hoyer [Mon, 5 Aug 2013 09:47:54 +0000 (11:47 +0200)]
dracut-functions.sh: removed non dracut-install shell functions

11 years agodracut.sh/dracut-functions.sh: handle root on non-block device
Harald Hoyer [Mon, 5 Aug 2013 09:25:45 +0000 (11:25 +0200)]
dracut.sh/dracut-functions.sh: handle root on non-block device

11 years agosystemd/dracut-initqueue.sh: continue to boot if finished failed
Harald Hoyer [Mon, 5 Aug 2013 09:23:16 +0000 (11:23 +0200)]
systemd/dracut-initqueue.sh: continue to boot if finished failed

but /sysroot/etc/fstab exists.

11 years agodracut.asc: small corrections
Harald Hoyer [Mon, 5 Aug 2013 09:22:55 +0000 (11:22 +0200)]
dracut.asc: small corrections

11 years agodracut.sh: call find with -print0 and cpio with --null
Harald Hoyer [Mon, 5 Aug 2013 09:22:21 +0000 (11:22 +0200)]
dracut.sh: call find with -print0 and cpio with --null

11 years agolsinitrd.sh: add old cpio signature
Harald Hoyer [Mon, 5 Aug 2013 09:14:24 +0000 (11:14 +0200)]
lsinitrd.sh: add old cpio signature

11 years ago95terminfo: install vt102
WANG Chao [Thu, 1 Aug 2013 10:54:55 +0000 (18:54 +0800)]
95terminfo: install vt102

systemd uses vt102 as default term for tty:

commit acda6a0
Author: Lennart Poettering <lennart@poettering.net>
Date:   Sun Apr 22 02:45:39 2012 +0200

    default to v102 everywhere, instead of vt100, to synchronize with agetty

Signed-off-by: WANG Chao <chaowang@redhat.com>
11 years agocms/cmssetup.sh: correct port for zfcp.conf
Harald Hoyer [Wed, 31 Jul 2013 15:28:04 +0000 (17:28 +0200)]
cms/cmssetup.sh: correct port for zfcp.conf

11 years agolvm: add "--yes" to lvm lvchange
Harald Hoyer [Wed, 31 Jul 2013 15:17:37 +0000 (17:17 +0200)]
lvm: add "--yes" to lvm lvchange

11 years agoChange the implementation of action_on_fail
Baoquan He [Tue, 23 Jul 2013 10:16:00 +0000 (18:16 +0800)]
Change the implementation of action_on_fail

Currently when action_on_fail is enabled, the emergency_shell won't be called.
In kdump even though user specify the default action as emergency_shell,
dracut skip it. Now change the implementation of action_on_fail to depend
on a file which is created by kdump when making kdump initrd, then remove it
at the beginning of kdump. This can solve the explicit emergency_shell problem.

And action_on_fail won't need paramenters, remove the relevant description in
dracut man page.

Signed-off-by: Baoquan He <bhe@redhat.com>
11 years agoRevert "base: setup correct system time and time zone in initrd"
Harald Hoyer [Wed, 31 Jul 2013 13:55:13 +0000 (15:55 +0200)]
Revert "base: setup correct system time and time zone in initrd"

This reverts commit 77364fd6bb01ea184db73b1a5ad05da984752293.

Too many problems with adjtime in the initramfs

https://bugzilla.redhat.com/show_bug.cgi?id=981617

11 years agoGenerate correct ifcfg file for vlan= option.
Radek Vykydal [Wed, 31 Jul 2013 13:18:20 +0000 (15:18 +0200)]
Generate correct ifcfg file for vlan= option.

11 years agodracut-031 031
Harald Hoyer [Wed, 31 Jul 2013 12:24:25 +0000 (14:24 +0200)]
dracut-031

11 years agokernel-modules/module-setup.sh: silently omit some filesystem drivers
Harald Hoyer [Wed, 31 Jul 2013 11:49:52 +0000 (13:49 +0200)]
kernel-modules/module-setup.sh: silently omit some filesystem drivers

11 years agodracut.conf.d/fedora.conf.example: don't omit drivers
Harald Hoyer [Wed, 31 Jul 2013 11:49:32 +0000 (13:49 +0200)]
dracut.conf.d/fedora.conf.example: don't omit drivers

11 years agosystemd: use systemd in the initramfs, if installed on the system
Harald Hoyer [Wed, 31 Jul 2013 11:30:49 +0000 (13:30 +0200)]
systemd: use systemd in the initramfs, if installed on the system

and systemd version is >= 198

11 years agonetwork: add vlan support for iBFT
Harald Hoyer [Wed, 31 Jul 2013 11:17:24 +0000 (13:17 +0200)]
network: add vlan support for iBFT

11 years agodracut-logger.sh: do not use systemd-cat, if no /run/systemd/journal
Harald Hoyer [Wed, 31 Jul 2013 11:12:41 +0000 (13:12 +0200)]
dracut-logger.sh: do not use systemd-cat, if no /run/systemd/journal

11 years agonetwork/net-lib.sh: safeguard against incomplete iBFT settings
Harald Hoyer [Wed, 31 Jul 2013 10:00:53 +0000 (12:00 +0200)]
network/net-lib.sh: safeguard against incomplete iBFT settings

11 years agofips: handle checksum checks for RHEV kernels
Harald Hoyer [Wed, 31 Jul 2013 09:31:13 +0000 (11:31 +0200)]
fips: handle checksum checks for RHEV kernels

https://bugzilla.redhat.com/show_bug.cgi?id=947729

11 years agofips: cope with module aliases, when checking modules
Harald Hoyer [Wed, 31 Jul 2013 09:26:46 +0000 (11:26 +0200)]
fips: cope with module aliases, when checking modules

Also do not fail, if module aliases try to load CPU specific modules
like crc32c_intel.

11 years agoTEST-30-ISCSI: eth0 -> ens3
Harald Hoyer [Wed, 31 Jul 2013 09:23:51 +0000 (11:23 +0200)]
TEST-30-ISCSI: eth0 -> ens3

11 years agoremove "< <(" syntax
Harald Hoyer [Wed, 31 Jul 2013 09:00:29 +0000 (11:00 +0200)]
remove "< <(" syntax

bash seems to want /dev/fd in that case. dracut is sometimes called in
environments, where /proc and /dev are not mounted.

11 years agoTEST-50-MULTINIC: change interface names to ens*
Harald Hoyer [Wed, 31 Jul 2013 08:59:25 +0000 (10:59 +0200)]
TEST-50-MULTINIC: change interface names to ens*

11 years agoTEST-10: double disk space
Harald Hoyer [Wed, 31 Jul 2013 07:57:57 +0000 (09:57 +0200)]
TEST-10: double disk space

11 years agodracut.spec: add bcache and modsign module
Harald Hoyer [Tue, 30 Jul 2013 14:21:59 +0000 (16:21 +0200)]
dracut.spec: add bcache and modsign module

11 years agobase/init.sh: create static device nodes with kmod
Harald Hoyer [Tue, 30 Jul 2013 14:19:03 +0000 (16:19 +0200)]
base/init.sh: create static device nodes with kmod

11 years agosystemd/dracut-pre-trigger.service: run after systemd-tmpfiles-setup-dev
Harald Hoyer [Tue, 30 Jul 2013 14:18:28 +0000 (16:18 +0200)]
systemd/dracut-pre-trigger.service: run after systemd-tmpfiles-setup-dev

11 years agosystemd: include systemd-tempfiles
Harald Hoyer [Tue, 30 Jul 2013 14:18:03 +0000 (16:18 +0200)]
systemd: include systemd-tempfiles

11 years agodracut.sh: check for file existance before trying to read from it
Harald Hoyer [Tue, 30 Jul 2013 13:33:10 +0000 (15:33 +0200)]
dracut.sh: check for file existance before trying to read from it

11 years agobase: hard depend on systemd, if system was started by systemd
Harald Hoyer [Tue, 30 Jul 2013 10:36:12 +0000 (12:36 +0200)]
base: hard depend on systemd, if system was started by systemd

11 years agocrypt: Wait for udev to settle before unlocking disk
James Lee [Mon, 29 Jul 2013 20:10:22 +0000 (16:10 -0400)]
crypt: Wait for udev to settle before unlocking disk

To eliminate a race condition that occurs when unlocking one device
depends on the result of unlocking a device before it, the crypt
module must wait for udev to settle between each unlock attempt.

Example

/etc/crypttab:

  keyfile /dev/md1 none luks
  sda4_crypt /dev/sda4 /dev/mapper/keyfile luks
  sdb4_crypt /dev/sdb4 /dev/mapper/keyfile luks

Without this patch, sometimes /dev/sda4 fails to unlock because udev
doesn't have time to create /dev/mapper/keyfile before it's needed.

11 years agourl-lib/module-setup.sh: fixed grepping libcurl
Harald Hoyer [Tue, 30 Jul 2013 13:25:44 +0000 (15:25 +0200)]
url-lib/module-setup.sh: fixed grepping libcurl

11 years agomdraid/mdmon-pre-shutdown.sh: removed unneeded code
Harald Hoyer [Tue, 30 Jul 2013 13:24:05 +0000 (15:24 +0200)]
mdraid/mdmon-pre-shutdown.sh: removed unneeded code

11 years agobase/dracut-lib.sh: check for /proc/cmdline existance
Harald Hoyer [Tue, 30 Jul 2013 13:14:59 +0000 (15:14 +0200)]
base/dracut-lib.sh: check for /proc/cmdline existance

11 years agodracut.spec: fix typo
Harald Hoyer [Tue, 30 Jul 2013 11:27:36 +0000 (13:27 +0200)]
dracut.spec: fix typo

11 years agosystemd: add support for kmod static devnodes
Harald Hoyer [Tue, 30 Jul 2013 09:58:33 +0000 (11:58 +0200)]
systemd: add support for kmod static devnodes

11 years agonetwork:ifup handle bootif style interfaces
Harald Hoyer [Mon, 29 Jul 2013 14:06:28 +0000 (16:06 +0200)]
network:ifup handle bootif style interfaces

e.g. ip=77-77-6f-6f-64-73:dhcp

11 years agoLatArCyrHeb-16 as a default i18n font for Gentoo
Amadeusz Żołnowski [Thu, 25 Jul 2013 18:24:56 +0000 (20:24 +0200)]
LatArCyrHeb-16 as a default i18n font for Gentoo

11 years agocrypt: Skip /etc/crypttab if not present
Amadeusz Żołnowski [Thu, 25 Jul 2013 21:28:44 +0000 (23:28 +0200)]
crypt: Skip /etc/crypttab if not present

Prevents following error message:

I: *** Including module: crypt ***
/usr/lib/dracut/modules.d/90crypt/module-setup.sh: line 31: /etc/crypttab: No such file or directory

11 years agobcache: add support for bcache
Harald Hoyer [Wed, 24 Jul 2013 12:35:19 +0000 (14:35 +0200)]
bcache: add support for bcache

11 years agodracut.sh: check for /sbin /bin /lib
Harald Hoyer [Wed, 24 Jul 2013 11:43:32 +0000 (13:43 +0200)]
dracut.sh: check for /sbin /bin /lib

use readlink to detect, if /usr has to be mounted