You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
29 lines
1.0 KiB
#!/bin/bash |
|
dracut_install mount mknod mkdir modprobe pidof sleep chroot \ |
|
sed ls flock cp mv dmesg rm ln rmmod mkfifo less |
|
if [ ! -e "${initdir}/bin/sh" ]; then |
|
dracut_install bash |
|
(ln -s bash "${initdir}/bin/sh" || :) |
|
fi |
|
# install our scripts and hooks |
|
inst "$moddir/init" "/init" |
|
inst "$moddir/initqueue" "/sbin/initqueue" |
|
inst "$moddir/loginit" "/sbin/loginit" |
|
mkdir -p ${initdir}/initqueue |
|
mkdir -p ${initdir}/initqueue-finished |
|
mkdir -p ${initdir}/initqueue-settled |
|
mkdir -p ${initdir}/tmp |
|
# Bail out if switch_root does not exist |
|
if which switch_root >/dev/null 2>&1; then |
|
dracut_install switch_root |
|
else |
|
inst "$moddir/switch_root" "/sbin/switch_root" \ |
|
|| derror "Failed to install switch_root" |
|
fi |
|
inst "$moddir/dracut-lib.sh" "/lib/dracut-lib.sh" |
|
inst_hook cmdline 10 "$moddir/parse-root-opts.sh" |
|
inst_hook cmdline 20 "$moddir/parse-blacklist.sh" |
|
if [ -x "/usr/sbin/load_policy" -o -x "/sbin/load_policy" ]; then |
|
inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh" |
|
fi |
|
mkdir -p "${initdir}/var/run"
|
|
|