From 94248ee4b921c10a7d63e62666418f507bbbed4f Mon Sep 17 00:00:00 2001 From: James Bair Date: Thu, 13 Jul 2017 08:52:21 -0400 Subject: [PATCH] Build the kernel and ramdisk after packages. This fixes a bug with LVM builds that I encountered back in 2010. It's been awhile so I don't recall if this breaks lower stage builds or not, but I know that as-is, the LVM utilities are missing from the kernel and it fails to boot. This was the patch I used at ServerBeach to get around that. --- quickstart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/quickstart b/quickstart index 43d5473..9fd4060 100755 --- a/quickstart +++ b/quickstart @@ -156,11 +156,9 @@ if [ "${install_mode}" != "stage4" ]; then runstep set_root_password "Setting root password" runstep set_timezone "Setting timezone" runstep setup_fstab "Setting up /etc/fstab" - runstep build_kernel "Building kernel" runstep install_logging_daemon "Installing logging daemon" runstep install_cron_daemon "Installing cron daemon" runstep setup_network_post "Setting up post-install networking" - runstep install_bootloader "Installing bootloader" fi if [ "${install_mode}" != "chroot" ]; then @@ -170,6 +168,12 @@ fi runstep install_extra_packages "Installing extra packages" runstep add_and_remove_services "Adding and removing services" runstep run_post_install_script "Running post-install script" + +if [ "${install_mode}" != "stage4" ]; then + runstep build_kernel "Building kernel" + runstep install_bootloader "Installing bootloader" +fi + runstep finishing_cleanup "Cleaning up" notify "Install complete!"