]> git.plutz.net Git - blast/commitdiff
include nilfs module in raspi initrd
authorPaul Hänsch <paul@plutz.net>
Sat, 7 Dec 2019 03:44:04 +0000 (04:44 +0100)
committerPaul Hänsch <paul@plutz.net>
Sat, 7 Dec 2019 03:44:04 +0000 (04:44 +0100)
modules/default.mk

index 9f7860e2d30476265fc5934bf3b96570a387a922..ec3f2f43caabb1f4ba97585d42fd1452bf845ee8 100644 (file)
@@ -42,7 +42,8 @@ _raspberry_config: ${CFGROOT}
        printf '%s\n' "$${RPICONFIG}" >>"$${CFGROOT}/boot/config.txt"
 
 _raspberry_initrd: ${CFGROOT}
-       k=$${CFGROOT}/lib/modules/*-v7+; \
+       printf 'nilfs2\n' >>"$${CFGROOT}/etc/initramfs-tools/modules"
+       k="$$(echo "$${CFGROOT}"/lib/modules/*-v7+)"; \
        chroot $${CFGROOT} update-initramfs -c -k "$${k##*/}"; \
        printf 'initramfs initrd.img-%s\n' "$${k##*/}" >>"$${CFGROOT}/boot/config.txt"