Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-25-2020, 03:37 AM   #1
LQ Newbie
Registered: Apr 2020
Posts: 2

Rep: Reputation: Disabled
debootstrap install on uefi with systemd-boot

I've been immensely struggling with installing debian via debootstrap method on a uefi system. It seems that there are very few tutorials online for uefi specifically. So I've been trying to follow the existing ones, with the attempt to modify them, but had no luck whatsoever.

Probably, the hardest part is bootloader. I really want to use systemd-boot, but I couldn't make it work.

My install follows these steps:

1. I start with making and formatting EFI and ext4 partition

2. Then I try to mount them
mount /dev/sda2 /mnt
mkdir -p /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
3. I run debootstrap command and mount other partitions
debootstrap --variant=minbase --arch=amd64 --include systemd,vim sid /mnt
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -o bind /dev /mnt/dev
4. After that I chroot, edit fstab and set root password
/dev/sda2 / ext4 defaults 0 1
5. Now I install kernel, headers and microcode
apt-get install linux-image-amd64 linux-headers-amd64 firmware-linux firmware-linux-free intel-microcode
And after that I am stuck.

Here is my attempt at systemd-boot:
bootctl --path=/boot/efi install
cd /boot/efi/loader
vim loader.conf
	default debian-*
cd entries
vim debian.conf
	title	Debian
	linux	/vmlinuz-linux
	initrd	/intel-ucode.img
	initrd	/initramfs-linux.img
	options	root=UUID=07de1a8d-ba01-4b47-32cc-2403e7464d74 rw
It doesn't give any errors, but after reboot it doesn't display the entry on the bootloader either.
What am I doing wrong? I desperately need help, this thing drains my sanity.
Old 06-06-2020, 07:39 AM   #2
LQ Newbie
Registered: Apr 2020
Location: The Netherlands
Distribution: Ubuntu
Posts: 10

Rep: Reputation: Disabled
If you're okay with switching to Grub (at least for the initial installation) the following guide should do the trick for you:

Some alterations are necessary, you don't need a 1 MiB Bios boot partition and Grub installation should just be run with:

grub-install /dev/<dest drive>

Make sure that you have the EFI partition mounted at /boot/efi before running the grub installation command.

You can omit the creation of a grub efi image using grub-mkimage, grub should take care of that by itself.

If you get this to work, you could try to give the systemd-boot another go.

I just posted this guide to get that bootstrapping installation up and running on a Slackware USB drive, it could also provide you with some additional information:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Debian without systemd using debootstrap method? patrick295767 Debian 29 09-21-2020 09:00 AM
[SOLVED] Trying to boot Ubuntu in UEFI mode, UEFI doesn't recognize boot devices Sarcutus Ubuntu 11 01-11-2019 07:14 PM
How to run systemd in debootstrap-ed system? sherlock88 Ubuntu 1 01-21-2018 02:17 AM
Mobo only supports uefi boot - how do I boot off a non-uefi cd? Ulysses_ Linux - Hardware 3 02-25-2016 08:06 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration