0

On my macbook I have installed arch linux following the installation guide.

I chose systemd-boot as the boot loader. I have an EFI partition at /dev/sda1 that stores systemd-bootand so.

Everything is fine, I can boot either on my macos partition or archlinux.

Now, I want to install Kali linux on an other partition. I tried the graphical install and when it comes to set up disks, I can set up a new partition for the new /of the system.

But as for /boot, I am afraid that setting it to /dev/sda1 will overwrite data or reformat the whole partition, in such a way that will make my previous systemd-boot unusable.

What could be done to install Kali with my setup ?

1 Answer 1

0

Install Kali using the installer and skip bootloader installation. Say Kali is installed at /dev/sda4

Then I boot on my Arch partition and mount /dev/sda4 on /mnt. You can find in /mnt/boot the kernel and initrd files. You just have to copy this to your EFI partition. Here the EFI partition is mounted at /boot.

Then do

cp /mnt/boot/vlinuz_xxx /boot/vlinuz_xxx 
cp /mnt/boot/initrd_xxx /boot/initrd_xxx 

And put the corresponding systemd config file in /boot/loader/entries/kali.confusing quiet as option for the kernel.

2
  • 1
    You probably want to empty the Kali /boot and mount the the ESP on it as well (add it to Kali's fstab).
    – Tom Yan
    Commented Dec 29, 2022 at 17:04
  • Indeed, that way, you only have one kernel file. Also it helps apt-getto update kernel and so. Commented Dec 29, 2022 at 17:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .