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.
18 lines
626 B
18 lines
626 B
#!/bin/bash |
|
dracut_install mount mknod mkdir modprobe pidof sleep chroot sed ls flock cp |
|
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" |
|
# Bail out if switch_root does not exist |
|
if [ ! -x "$moddir/switch_root" ]; then |
|
# assume it is installed in the standard path |
|
dracut_install switch_root |
|
else |
|
inst "$moddir/switch_root" "/sbin/switch_root" |
|
fi |
|
inst "$moddir/dracut-lib" "/lib/dracut-lib" |
|
inst_hook cmdline 10 "$moddir/parse-root-opts.sh" |
|
inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
|
|
|