can't link modules until after
This commit is contained in:
parent
edc4e89368
commit
2f7c44ba21
1 changed files with 4 additions and 3 deletions
|
|
@ -89,12 +89,13 @@ for CONFIG in $SNAPPER_CONFIGS; do
|
|||
mkdir -p /boot/old
|
||||
find /usr/lib/modules -xtype l -delete
|
||||
find /boot/old -xtype l -delete
|
||||
ln -sv /.snapshots/$x/snapshot/boot/vmlinuz-linux/boot/old/vmlinuz-linux-$(uname -r)
|
||||
ln -sv /.snapshots/$x/snapshot/usr/lib/modules/$(uname -r) /usr/lib/modules/
|
||||
ln -sv /.snapshots/$x/snapshot/boot/vmlinuz-linux /boot/old/vmlinuz-linux-$(uname -r)
|
||||
fi
|
||||
elif [[ -f $prefile && "$pre_or_post" == "post" ]]; then
|
||||
if [[ "$PACMAN_KEEP_OLD_KERNELS" == "yes" && "$kernel_updated" == "yes" ]]; then
|
||||
printf "==> Regenerating GRUB configuration...\n"
|
||||
printf "==> Linking old kernels and modules...\n"
|
||||
x=$(<$prefile)
|
||||
ln -sv /.snapshots/$x/snapshot/usr/lib/modules/$(uname -r) /usr/lib/modules/
|
||||
# kver=$(pacman -Q linux | awk '{print $2}')-ARCH
|
||||
# mv /boot/vmlinuz-linux /boot/vmlinuz-linux-$kver
|
||||
# mv /boot/initramfs-linux.img /boot/initramfs-linux-$kver.img
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue