Skip to content

Commit cc5bead

Browse files
ReillyBroganermo
authored andcommitted
moss: Fix initrd service with newer Dracut
Newer dracut (unsure what version) changed some things around and the previous install script no longer works. Fix it so that it works with dracut 110 (and 107 probably)
1 parent 6dd97df commit cc5bead

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

boot/module/module-setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ depends() {
1919
install() {
2020
dracut_install /usr/lib/moss/moss-fstx.sh
2121
dracut_install /usr/bin/moss
22+
2223
inst_simple "${systemdsystemunitdir}/moss-fstx.service"
23-
mkdir -p "${initdir}${systemdsystemconfdir}/initrd-root-fs.target.wants"
24-
ln_r "${systemdsystemunitdir}/moss-fstx.service" \
25-
"${systemdsystemconfdir}/initrd-root-fs.target.wants/moss-fstx.service"
24+
# Enable systemd type unit(s)
25+
$SYSTEMCTL -q --root "$initdir" enable moss-fstx.service
2626
}

boot/moss-fstx.service

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ StandardInput=null
1616
StandardOutput=journal
1717
StandardError=journal+console
1818
RemainAfterExit=yes
19+
20+
[Install]
21+
WantedBy=initrd-root-fs.target

0 commit comments

Comments
 (0)