You are not logged in.

#1 2023-09-08 18:01:51

Splork
Member
Registered: 2017-05-31
Posts: 5

[SOLVED] bootctl install: Bad file descriptor

I'm trying to set up a Dell Optiplex 3060 Micro (secureboot is turned off, archiso 2023.09.01)

I have the following setup: NVME boot drive, 3 partitions (set up with gdisk):

1- 512MB, partition type EF00, formatted with mkfs.fat -F32, pulls double duty as EFI and /boot
2 - 32GB, swap
3 - remaining, configured as a LUKS with a btrfs inside as rootfs

NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
loop0           7:0    0 682.6M  1 loop  
sda             8:0    0 232.9G  0 disk  
sdb             8:16   0 115.2G  0 disk  
├─sdb1          8:17   0 115.2G  0 part  
│ └─ventoy    254:0    0 804.3M  1 dm    
└─sdb2          8:18   0    32M  0 part  
nvme0n1       259:0    0 465.8G  0 disk  
├─nvme0n1p1   259:1    0   512M  0 part  /boot
├─nvme0n1p2   259:2    0    32G  0 part  
└─nvme0n1p3   259:3    0 433.3G  0 part  
  └─cryptdisk 254:1    0 433.2G  0 crypt /

when I try to run

bootctl install

I get the following error:

Failed to get device path for 259:1: Bad file descriptor

however, the parittion is correctly mounted, I can look inside and see its contents

total 114700
drwxr-xr-x 2 root root     4096 Jan  1  1970 .
drwxr-xr-x 1 root root      144 Sep  8 16:45 ..
-rwxr-xr-x 1 root root 77312680 Sep  8  2023 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 20094296 Sep  8  2023 initramfs-linux.img
-rwxr-xr-x 1 root root  7360512 Aug  8 20:19 intel-ucode.img
-rwxr-xr-x 1 root root 12673312 Sep  8  2023 vmlinuz-linux

and apparently the contents of the linux, linux-fírmware and intel-ucode packages got installed correctly to it.

Googling <bootctl install "Bad file descriptor"> doesn't really bring up anything useful, so I'm kind of at a loss here...

PS. I just noticed that the /boot folder has a timestamp of Jan 1 1970 which is... odd, but I don't really know what to do about it

Last edited by Splork (2023-09-12 08:19:15)

Offline

#2 2023-09-08 18:18:25

Marcos FRM
Member
Registered: 2013-02-10
Posts: 14

Re: [SOLVED] bootctl install: Bad file descriptor

I get this error too among the ones mentioned here:

https://bbs.archlinux.org/viewtopic.php?id=288653

systemd 254.2-1 is probably borked.

Edit:
https://bugs.archlinux.org/task/79619

Last edited by Marcos FRM (2023-09-08 18:19:09)

Offline

#3 2023-09-12 08:19:51

Splork
Member
Registered: 2017-05-31
Posts: 5

Re: [SOLVED] bootctl install: Bad file descriptor

Yes, turns out that was it, with systemd 254.3 it works fine.

Thanks!

Offline

Board footer

Powered by FluxBB