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

export KERNEL=/boot/vmlinuz-7.0.4
export KERNEL_DOINST=true
# Only run this if we aren't in the installer.
# We'll do these things after the install.
# First we'll check for an old version of setup.01.mkinitrd. If we find one,
# let's skip all this. We could be upgrading from 15.0...
if [ -r var/lib/pkgtools/setup/setup.01.mkinitrd ]; then
  if ! grep -wq vmlinuz-generic-smp var/lib/pkgtools/setup/setup.01.mkinitrd 2> /dev/null ; then
    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
  fi
fi
