19 lines
632 B
Bash
Executable File
19 lines
632 B
Bash
Executable File
#!/bin/bash
|
|
dracut_install mount mknod mkdir modprobe pidof sleep chroot echo sed ls flock
|
|
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
|
|
derror "ERROR: $moddir/switch_root does not exist."
|
|
exit 1
|
|
fi
|
|
inst "$moddir/switch_root" "/sbin/switch_root"
|
|
inst "$moddir/dracut-lib" "/lib/dracut-lib"
|
|
inst_hook pre-pivot 50 "$moddir/selinux-loadpolicy.sh"
|
|
# Install any drivers specified from .conf or --drivers
|
|
instmods ${drivers}
|