don't print broken symlinks
This commit is contained in:
parent
9a796f490b
commit
24891dfce3
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ for CONFIG in $SNAPPER_CONFIGS; do
|
||||||
elif [[ -f $prefile && "$pre_or_post" == "post" ]]; then
|
elif [[ -f $prefile && "$pre_or_post" == "post" ]]; then
|
||||||
if [[ "$LINK_MODULES" == "yes" && "$kernel_updated" == "yes" && "$CONFIG" == "root" ]]; then
|
if [[ "$LINK_MODULES" == "yes" && "$kernel_updated" == "yes" && "$CONFIG" == "root" ]]; then
|
||||||
printf "==> Symlinking old kernel modules...\n"
|
printf "==> Symlinking old kernel modules...\n"
|
||||||
find /usr/lib/modules -xtype l -delete -print
|
find /usr/lib/modules -xtype l -delete
|
||||||
ln -sv /.snapshots/$(<$prefile)/snapshot/usr/lib/modules/$(uname -r) /usr/lib/modules/
|
ln -sv /.snapshots/$(<$prefile)/snapshot/usr/lib/modules/$(uname -r) /usr/lib/modules/
|
||||||
fi
|
fi
|
||||||
x=$($snapper_cmd "$(truncate_description $POST_DESCRIPTION)" --pre-number "$(< "$prefile")")
|
x=$($snapper_cmd "$(truncate_description $POST_DESCRIPTION)" --pre-number "$(< "$prefile")")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue