more verbose

This commit is contained in:
James Barnett 2017-04-20 09:28:15 -05:00
parent 3a904dac0e
commit 1135776e93
No known key found for this signature in database
GPG key ID: E4B5E45AA3B8C5C3

View file

@ -93,8 +93,9 @@ for CONFIG in $SNAPPER_CONFIGS; do
printf "==> %s: $(echo $x | tee "$prefile")\n" "$CONFIG"
elif [[ -f $prefile && "$pre_or_post" == "post" ]]; then
if [[ "$PACMAN_LINK_MODULES" == "yes" && "$kernel_updated" == "yes" ]]; then
printf "==> Linking old kernel modules...\n"
find /usr/lib/modules -xtype l -delete
printf "==> Deleting broken kernel modules symlinks...\n"
find /usr/lib/modules -xtype l -delete -print
printf "==> Symlinking old kernel modules...\n"
ln -sv /.snapshots/$(<$prefile)/snapshot/usr/lib/modules/$(uname -r) /usr/lib/modules/
fi
x=$($snapper_cmd "$(truncate_description $PACMAN_POST_DESCRIPTION)" --pre-number "$(< "$prefile")")