debugging
This commit is contained in:
parent
3bbd2a3152
commit
edc4e89368
1 changed files with 6 additions and 6 deletions
|
|
@ -86,7 +86,7 @@ for CONFIG in $SNAPPER_CONFIGS; do
|
|||
printf "==> %s: $(echo $x | tee "$prefile")\n" "$CONFIG"
|
||||
if [[ "$PACMAN_KEEP_OLD_KERNELS" == "yes" && "$kernel_updated" == "yes" ]]; then
|
||||
printf "==> Linking old kernels and modules...\n"
|
||||
[[ -d /boot/old ]] || mkdir -p /boot/old
|
||||
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)
|
||||
|
|
@ -94,11 +94,11 @@ for CONFIG in $SNAPPER_CONFIGS; do
|
|||
fi
|
||||
elif [[ -f $prefile && "$pre_or_post" == "post" ]]; then
|
||||
if [[ "$PACMAN_KEEP_OLD_KERNELS" == "yes" && "$kernel_updated" == "yes" ]]; then
|
||||
printf "==> Linking old kernels and modules...\n"
|
||||
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
|
||||
mv /boot/initramfs-linux-fallback.img /boot/initramfs-linux-$kver-fallback.img
|
||||
printf "==> Regenerating GRUB configuration...\n"
|
||||
# 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
|
||||
# mv /boot/initramfs-linux-fallback.img /boot/initramfs-linux-$kver-fallback.img
|
||||
grub-mkconfig -o /boot/grub/grub.cfg
|
||||
fi
|
||||
x=$($snapper_cmd "$(truncate_description $PACMAN_POST_DESCRIPTION)" --pre-number "$(< "$prefile")")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue