if [[ $kernel_only != yes ]]; then
# make sure that library links are correct and up to date
for f in /etc/ld.so.conf /etc/ld.so.conf.d/*; do
- [[ -e $f ]] && dracut_install "$f"
+ [[ -e $f ]] && inst_simple "$f"
done
if ! ldconfig -r "$initdir"; then
if [[ $UID = 0 ]]; then
fi
# install checksum files also
if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
- inst "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
+ inst_simple "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
fi
ddebug "Installing $_src"
cp -pfL "$_src" "${initdir}$target"
if [[ -L $_src ]]; then
# install checksum files also
if [[ -e "${_src%/*}/.${_src##*/}.hmac" ]]; then
- inst "${_src%/*}/.${_src##*/}.hmac" "${_dest%/*}/.${_dest##*/}.hmac"
+ inst_simple "${_src%/*}/.${_src##*/}.hmac" "${_dest%/*}/.${_dest##*/}.hmac"
fi
_reallib=$(readlink -f "$_src")
inst_simple "$_reallib" "$_reallib"
for f in $(eval find ${kbddir}/{${KBDSUBDIRS}} -type f -print)
do
- inst $f
+ inst_simple $f
done
# remove unnecessary files
if [[ ${FONT_MAP} ]]
then
FONT_MAP=${FONT_MAP%.trans}
- inst ${kbddir}/consoletrans/${FONT_MAP}.trans
+ inst_simple ${kbddir}/consoletrans/${FONT_MAP}.trans
fi
if [[ ${FONT_UNIMAP} ]]
then
FONT_UNIMAP=${FONT_UNIMAP%.uni}
- inst ${kbddir}/unimaps/${FONT_UNIMAP}.uni
+ inst_simple ${kbddir}/unimaps/${FONT_UNIMAP}.uni
fi
if [[ ${UNICODE} ]]
inst "$moddir/ifup" "/sbin/ifup"
inst "$moddir/netroot" "/sbin/netroot"
inst "$moddir/dhclient-script" "/sbin/dhclient-script"
- inst "$moddir/dhclient.conf" "/etc/dhclient.conf"
+ inst_simple "$moddir/dhclient.conf" "/etc/dhclient.conf"
inst_hook pre-udev 50 "$moddir/ifname-genrules.sh"
inst_hook pre-udev 60 "$moddir/net-genrules.sh"
inst_hook cmdline 91 "$moddir/dhcp-root.sh"
inst_hook cmdline 10 "$moddir/parse-keydev.sh"
inst_hook cmdline 30 "$moddir/parse-crypt.sh"
inst_hook pre-pivot 30 "$moddir/crypt-cleanup.sh"
- inst /etc/crypttab
+ inst_simple /etc/crypttab
inst "$moddir/crypt-lib.sh" "/lib/dracut-crypt-lib.sh"
}
install() {
local _f
[ -f /etc/modprobe.conf ] && dracut_install /etc/modprobe.conf
- dracut_install $(find /etc/modprobe.d/ -type f -name '*.conf')
+ for i in $(find /etc/modprobe.d/ -type f -name '*.conf'); do
+ inst_simple "$i"
+ done
inst_hook cmdline 01 "$moddir/parse-kernel.sh"
inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
local f
for _f in modules.builtin.bin modules.builtin; do
- [[ $srcmods/$_f ]] && inst "$srcmods/$_f" "/lib/modules/$kernel/$_f" \
+ [[ $srcmods/$_f ]] && inst_simple "$srcmods/$_f" "/lib/modules/$kernel/$_f" \
&& break
done || {
dfatal "No modules.builtin.bin and modules.builtin found!"
install() {
dracut_install wget
mkdir -m 0755 -p "$initdir/etc/ssl/certs"
- if ! inst /etc/ssl/certs/ca-bundle.crt; then
+ if ! inst_simple /etc/ssl/certs/ca-bundle.crt; then
dwarn "Couldn't find SSL CA cert bundle; HTTPS won't work."
fi
if [[ $hostonly ]] || [[ $lvmconf = "yes" ]]; then
if [ -f /etc/lvm/lvm.conf ]; then
- inst /etc/lvm/lvm.conf
+ inst_simple /etc/lvm/lvm.conf
# FIXME: near-term hack to establish read-only locking;
# use command-line lvm.conf editor once it is available
sed -i -e 's/\(^[[:space:]]*\)locking_type[[:space:]]*=[[:space:]]*[[:digit:]]/\1locking_type = 4/' ${initdir}/etc/lvm/lvm.conf
type -P rpcbind >/dev/null && dracut_install rpcbind
dracut_install rpc.statd mount.nfs mount.nfs4 umount
- [ -f /etc/netconfig ] && dracut_install /etc/netconfig
- dracut_install /etc/services
- dracut_install /etc/nsswitch.conf /etc/rpc /etc/protocols
- dracut_install rpc.idmapd /etc/idmapd.conf
+ [ -f /etc/netconfig ] && inst_simple /etc/netconfig
+ inst_simple /etc/services
+ for i in /etc/nsswitch.conf /etc/rpc /etc/protocols /etc/idmapd.conf; do
+ inst_simple $i
+ done
+ dracut_install rpc.idmapd
dracut_install sed
for _i in {"$libdir","$usrlibdir"}/libnfsidmap_nsswitch.so* \
[ -d ${_terminfodir} ] && break
done
- [ -d ${_terminfodir} ] && \
- dracut_install $(find ${_terminfodir} -type f)
+ if [ -d ${_terminfodir} ]; then
+ for f in $(find ${_terminfodir} -type f); do
+ inst_simple $f
+ done
+ fi
}
# FIXME: would be nice if we didn't have to know which rules to grab....
# ultimately, /lib/initramfs/rules.d or somesuch which includes links/copies
# of the rules we want so that we just copy those in would be best
- dracut_install udevd udevadm /etc/udev/udev.conf /etc/group
+ dracut_install udevd udevadm
+ for i in /etc/udev/udev.conf /etc/group; do
+ inst_simple $i
+ done
dracut_install basename
inst_rules 50-udev-default.rules 60-persistent-storage.rules \
61-persistent-storage-edd.rules 80-drivers.rules 95-udev-late.rules \