You are not logged in.
Hi!
I'm currently using efistub (efibootmgr) to boot; btw i'd like to switch to systemd-boot (because of ease of configuration).
I'm mounting esp in /boot from fstab:
/dev/sda2 /boot vfat defaults,noatime 0 0Should i just run "sudo bootctl install /boot" ?
And...from the systemd 220 changelog:
The EFI System Partition (ESP) as mounted to /boot by
systemd-efi-boot-generator will now be unmounted
automatically after 2 minutes of not being used. This should
minimize the risk of ESP corruptions.
1) Does that mean i can get rid of my /boot entry in fstab because it will be automatic mounted from systemd?
2) What if I upgrade my kernel after 2 minutes and the esp is already unmounted?
Thanks!
Last edited by nierro (2015-05-28 14:14:20)
Offline
I enabled and started systemd-boot and removed gummiboot. It appears to be working properly on my system, but I had only built it yesterday evening after the abs was updated (220-3). As for the /boot unmounting, I don't know if it will automagically re-mount if you need to write to it.... I guess that's why we're testing it, eh? I'm going to try commenting out the /boot entry in fstab and do a couple reboots to see if it works properly later on this evening, when I get home from work. Or you can test it for us?
edit: decided to try commenting out my boot entry and rebooted.... seems to work, I booted..
And after a little thought, I guess you can wait a few minutes for /boot to unmount then rebuild your initramfs (mkinitcpio) and see if it errors out on you.
Last edited by Buddlespit (2015-05-28 11:43:07)
An old man, trying to stay sane
Offline
What do you mean with "enabled and started systemd-boot"?
By the way i guess i should "install" it in /boot, but i don't know if i have to do something else (as i was previously booting directly from uefi).
And, as this is a critical part of my system, and i don't want to find myself with an unbootable system, i'll wait for more clarifications ![]()
Thanks!
Offline
Ok, i managed to get it working by issuing a "bootctl install" and by copying sample config from /usr/share/systemd/bootctl/arch.conf to /boot/loader/entries/ (and configuring it), plus i had to configure
/boot/loader/loader.conf too.
Everything is working well, boot is automounted. I'm checking if it gets unmounted after 2 minutes being unused right now.
I'll mark the thread as solved ![]()
EDIT: aaaand yes, /boot gets automounted when needed. Proof:
systemctl status boot.mount
● boot.mount - EFI System Partition
Loaded: loaded (/run/systemd/generator.late/boot.mount)
Active: inactive (dead) since gio 2015-05-28 16:30:33 CEST; 6min ago
Where: /boot
What: /dev/disk/by-partuuid/4601ee55-06ec-40a7-82ef-1b610c594b8e
Docs: man:systemd-efi-boot-generator(8)
Process: 1513 ExecUnmount=/usr/bin/umount /boot -n (code=exited, status=0/SUCCESS)
Process: 840 ExecMount=/usr/bin/mount /dev/disk/by-partuuid/4601ee55-06ec-40a7-82ef-1b610c594b8e /boot -n -t vfat -o umask=0077 (code=exited, status=0/SUCCESS)
mag 28 16:26:28 fede-laptop systemd[1]: Mounting EFI System Partition...
mag 28 16:26:28 fede-laptop systemd[1]: Mounted EFI System Partition.
mag 28 16:30:33 fede-laptop systemd[1]: Unmounting EFI System Partition...
mag 28 16:30:33 fede-laptop systemd[1]: Unmounted EFI System Partition.
┌─[federico]──[fede-laptop]:~$
└──>>sudo mkinitcpio -p linux
[sudo] password di federico:
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.0.4-2-ARCH
-> Running build hook: [systemd]
==> Generating module dependencies
==> Creating uncompressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.0.4-2-ARCH
-> Running build hook: [systemd]
==> Generating module dependencies
==> Creating uncompressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
┌─[federico]──[fede-laptop]:~$
└──>>systemctl status boot.mount
● boot.mount - EFI System Partition
Loaded: loaded (/run/systemd/generator.late/boot.mount)
Active: active (mounted) since gio 2015-05-28 16:36:54 CEST; 2s ago
Where: /boot
What: /dev/sda2
Docs: man:systemd-efi-boot-generator(8)
Process: 1513 ExecUnmount=/usr/bin/umount /boot -n (code=exited, status=0/SUCCESS)
Process: 2233 ExecMount=/usr/bin/mount /dev/disk/by-partuuid/4601ee55-06ec-40a7-82ef-1b610c594b8e /boot -n -t vfat -o umask=0077 (code=exited, status=0/SUCCESS)
mag 28 16:36:54 fede-laptop systemd[1]: Mounting EFI System Partition...
mag 28 16:36:54 fede-laptop systemd[1]: Mounted EFI System Partition.Last edited by nierro (2015-05-28 14:36:25)
Offline