( cd boot ; rm -rf System.map )
( cd boot ; ln -sf System.map-6.12.2 System.map )
( cd boot ; rm -rf config )
( cd boot ; ln -sf config-6.12.2.x64 config )
( cd boot ; rm -rf vmlinuz )
( cd boot ; ln -sf vmlinuz-6.12.2 vmlinuz )
( cd boot ; rm -rf vmlinuz-generic )
( cd boot ; ln -sf vmlinuz-6.12.2 vmlinuz-generic )
( cd lib/modules/6.12.2 ; rm -rf build )
( cd lib/modules/6.12.2 ; ln -sf /usr/src/linux-6.12.2 build )

export KERNEL=/boot/vmlinuz-6.12.2
export KERNEL_DOINST=true
# Only run this if we aren't in the installer.
# We'll do these things after the install.
if [ -z "$INSIDE_INSTALLER" ]; then
  # Generate the initrd and remove orphaned initrds.
  # Options (including disabling this) may be found in /etc/default/geninitrd.
  if [ -x usr/sbin/geninitrd ]; then
    usr/sbin/geninitrd
  fi
fi
