diff --git a/features.in/stage2/config.mk b/features.in/stage2/config.mk index 2eb7099a..ecae3728 100644 --- a/features.in/stage2/config.mk +++ b/features.in/stage2/config.mk @@ -1,8 +1,10 @@ # "1" is not a typo use/stage2: sub/stage1 @$(call add_feature) - @$(call add,STAGE1_PACKAGES,file make-initrd make-initrd-propagator propagator) + @$(call add,STAGE1_PACKAGES,make-initrd iproute2) + @$(call add,STAGE1_PACKAGES,make-initrd-propagator propagator) @$(call add,STAGE1_MODLISTS,$$(FEATURES)) + @$(call xport,STAGE1_PACKAGES) @$(call xport,STAGE1_KCONFIG) # building blocks for propagator's module cove diff --git a/features.in/stage2/stage1/scripts.d/20-initrd-cifs b/features.in/stage2/stage1/scripts.d/20-initrd-cifs index ed88293c..1f36197d 100755 --- a/features.in/stage2/stage1/scripts.d/20-initrd-cifs +++ b/features.in/stage2/stage1/scripts.d/20-initrd-cifs @@ -1,4 +1,9 @@ #!/bin/sh # add mount.cifs to for get image from samba server +# if it's available -echo 'PUT_FILES += /sbin/mount.cifs' >> /etc/initrd.mk +if [ -f /sbin/mount.cifs ]; then + echo "PUT_FILES += /sbin/mount.cifs" >> /etc/initrd.mk +else + echo "20-initrd-cifs: skipping mount.cifs (missing)" +fi