File module-setup.sh of Package elemental-base-os
#!/bin/bash
# called by dracut
check() {
# a live host-only image doesn't really make a lot of sense
[[ $hostonly ]] && return 1
return 255
}
# called by dracut
depends() {
echo dmsquash-live systemd
return 0
}
# called by dracut
install() {
declare moddir=${moddir}
declare systemdutildir=${systemdutildir}
declare systemdsystemunitdir=${systemdsystemunitdir}
inst_simple "${moddir}/elemental-live-setup.service" \
"${systemdsystemunitdir}/elemental-live-setup.service"
mkdir -p "${initdir}/${systemdsystemunitdir}/initrd.target.wants"
ln_r "../elemental-elemental-live-setup.service" \
"${systemdsystemunitdir}/initrd.target.wants/elemental-live-setup.service"
dracut_need_initqueue
}