diff options
-rwxr-xr-x | kern | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -14,6 +14,10 @@ has_boot_mount() { awk '{print $2}' /etc/fstab | grep -q ^/boot$ } +is_boot_mounted() { + mountpoint -q /boot +} + get_latest_kernel() { eselect --brief kernel list | tail -n1 } @@ -60,7 +64,7 @@ build_kernel() { } install_kernel() { - if has_boot_mount; then + if has_boot_mount && ! is_boot_mounted; then sudo mount /boot fi sudo make install modules_install |