#### begin btrfs-progs
+# we want these files from the package:
+# /usr/share/initramfs-tools/hooks/btrfs
+# /usr/share/initramfs-tools/scripts/local-premount/btrfs
+# everything else, seems better to take from upstream package.
+for f in $(dpkg-query -L btrfs-progs | gr '/man/|^/s?bin/|^/usr/lib/udev') ; do
+ if [[ ! -f $f ]]; then
+ continue
+ fi
+ # use --no-rename so that I don't need to track whether this was the first
+ # btrfs-progs install.
+ $ROOTCMD dpkg-divert --no-rename --local --add $f
+done
+
## using dev version for bug fix temporarily. when done, set this to false,
## and we can stop copying it in fai-redep.
static_ver=true
if [[ $FAI_ROOT == / ]]; then
cd $bp_dir
make install
+ mv /usr/bin/{fsck,mkfs}.btfs /usr/sbin/
else
mkdir -p $target/tmp/bprogs
mount -o bind $bp_dir $target/tmp/bprogs
# pre-build. in t11:
# ./autogen.sh && ./configure --disable-documentation --prefix=/usr && make
- # in t12, we have the docs prerequisites, so enabled documentation
+ # in t12, we have the docs prerequisites, so enabled documentation.
+ # We won't have the latest docs in t11, i could install them from the t12
+ # build dir, but meh.
$ROOTCMD bash -xe <<EOF
cd /tmp/bprogs
make install
+mv /usr/bin/{fsck,mkfs}.btfs /usr/sbin/
EOF
fi
else
./configure --prefix=/usr
make
make install
+mv /usr/bin/{fsck,mkfs}.btfs /usr/sbin/
EOF
# If our desktop is HOST2, will we btrbk this latest bprogs to other
# machines.