delete old broken links
This commit is contained in:
parent
6ad1c1f571
commit
9ebba032da
1 changed files with 1 additions and 0 deletions
|
|
@ -95,6 +95,7 @@ for CONFIG in $SNAPPER_CONFIGS; do
|
|||
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
|
||||
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")")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue