tar2fs: append to MODULES_PRELOAD, do not clobber
Thanks glebfm@ for spotting that it's = instead of += as it goes in all the other places; I remember no good reason to overwrite the potentially preexisting contents.
This commit is contained in:
parent
8040bb5dae
commit
9e162659a4
@ -187,7 +187,7 @@ if [ -n "$BOOTPART" ]; then
|
|||||||
echo "$BOOTDEV /boot $BOOTFSTYPE defaults 1 2" >> "$ROOTFS/etc/fstab"
|
echo "$BOOTDEV /boot $BOOTFSTYPE defaults 1 2" >> "$ROOTFS/etc/fstab"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "MODULES_PRELOAD=$INITRD_MODULES $ROOTFSTYPE" >> "$ROOTFS/etc/initrd.mk"
|
echo "MODULES_PRELOAD += $INITRD_MODULES $ROOTFSTYPE" >> "$ROOTFS/etc/initrd.mk"
|
||||||
|
|
||||||
KERNEL="$(readlink $ROOTFS/boot/vmlinuz | sed 's,vmlinuz-,,')"
|
KERNEL="$(readlink $ROOTFS/boot/vmlinuz | sed 's,vmlinuz-,,')"
|
||||||
chroot "$ROOTFS" make-initrd -k "$KERNEL"
|
chroot "$ROOTFS" make-initrd -k "$KERNEL"
|
||||||
|
Loading…
Reference in New Issue
Block a user