Commit 2b3455c2 authored by Michael Shigorin's avatar Michael Shigorin

stage2: fix cifs-related bits

sin@ was kind enough to just stick mount.cifs into initrd regardless of its presence in the chroot in question; let's look first and only add what's found. This started as a stopgap fix after make-initrd 2.2.0 which happened to collide with cifs-related m-p commits in a somewhat unfortunate manner...
parent 1710b000
# "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
......
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment