rauc: preserve /cfg/ssh-user-auth during updates as well
It seems that this thing uses a whitelist to avoid copying around stuff
like lost+found, and possibly also some other random garbage. Yay, let's
follow that trend.
Change-Id: I137c092e90cc53469e68760644797b4b53c6c3a6
diff --git a/package/czechlight-rauc/rauc-hook.sh b/package/czechlight-rauc/rauc-hook.sh
index 65401d6..9850c38 100755
--- a/package/czechlight-rauc/rauc-hook.sh
+++ b/package/czechlight-rauc/rauc-hook.sh
@@ -4,9 +4,11 @@
slot-post-install)
case "$RAUC_SLOT_CLASS" in
cfg)
- if [[ -d /cfg/etc ]]; then
- cp -a /cfg/etc ${RAUC_SLOT_MOUNT_POINT}/
- fi
+ for DIR in etc ssh-user-auth; do
+ if [[ -d /cfg/$DIR ]]; then
+ cp -a /cfg/$DIR ${RAUC_SLOT_MOUNT_POINT}/
+ fi
+ done
;;
*)
echo "Internal error: hook mismatched"