first commit
This commit is contained in:
commit
93e2ad4b29
35 changed files with 1048 additions and 0 deletions
28
ostree-dracut/modules.d/98ostree/module-setup.sh
Normal file
28
ostree-dracut/modules.d/98ostree/module-setup.sh
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/bash
|
||||
installkernel() {
|
||||
instmods erofs overlay
|
||||
}
|
||||
|
||||
check() {
|
||||
if [[ -x $systemdutildir/systemd ]] && [[ -x /usr/lib/ostree/ostree-prepare-root ]]; then
|
||||
return 255
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
depends() {
|
||||
return 0
|
||||
}
|
||||
|
||||
install() {
|
||||
dracut_install /usr/lib/ostree/ostree-prepare-root
|
||||
for r in /usr/lib /etc; do
|
||||
if test -f "$r/ostree/prepare-root.conf"; then
|
||||
inst_simple "$r/ostree/prepare-root.conf"
|
||||
fi
|
||||
done
|
||||
inst_simple "${systemdsystemunitdir}/ostree-prepare-root.service"
|
||||
mkdir -p "${initdir}${systemdsystemconfdir}/initrd-root-fs.target.wants"
|
||||
ln_r "${systemdsystemunitdir}/ostree-prepare-root.service" \
|
||||
"${systemdsystemconfdir}/initrd-root-fs.target.wants/ostree-prepare-root.service"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue