projg2 / eclean-kernel

Installed kernel cleanup tool
GNU General Public License v2.0
31 stars 10 forks source link

NotADirectoryError(20, 'Not a directory') #32

Closed mrturcot closed 1 year ago

mrturcot commented 1 year ago

Haven't seen this before? Is the issue on my end?

➜ eclean-kernel -An2
eclean-kernel has met the following issue:

  NotADirectoryError(20, 'Not a directory')

If you believe that the mentioned issue is a bug, please report it
to https://github.com/mgorny/eclean-kernel/issues. If possible,
please attach the output of 'eclean-kernel --list-kernels' and your
regular eclean-kernel call with additional '--debug' argument.
➜ eclean-kernel --list-kernels --debug
DEBUG:root:Sorter: <ecleankernel.sort.VersionSort object at 0x7f89db1faad0>
DEBUG:root:Layout failed: <class 'ecleankernel.layout.blspec.BlSpecLayout'>; exception: /boot/[EFI/]a85f29c445c0b751729c47a963650897 not found
DEBUG:root:Layout: <ecleankernel.layout.std.StdLayout object at 0x7f89db1fa680>
DEBUG:root:Bootloader failed: <class 'ecleankernel.bootloader.lilo.LILO'>
DEBUG:root:/boot/grub/grub.cfg found
DEBUG:root:Bootloader: <ecleankernel.bootloader.grub2.GRUB2 object at 0x7f89db1fa500>
6.0.8-gentoo [6.0.8-gentoo]
- systemmap: /boot/System.map-6.0.8-gentoo
- config: /boot/config-6.0.8-gentoo
- vmlinuz: /boot/vmlinuz-6.0.8-gentoo
- modules: /lib/modules/6.0.8-gentoo
- build: /usr/src/linux-6.0.8-gentoo
- last modified: 2022-11-10 23:06:43
6.0.7-gentoo [6.0.7-gentoo]
- systemmap: /boot/System.map-6.0.7-gentoo
- config: /boot/config-6.0.7-gentoo
- vmlinuz: /boot/vmlinuz-6.0.7-gentoo
- modules: /lib/modules/6.0.7-gentoo
- build: /usr/src/linux-6.0.7-gentoo
- last modified: 2022-11-07 11:37:12
6.0.7-gentoo.old [6.0.7-gentoo]
- systemmap: /boot/System.map-6.0.7-gentoo.old
- config: /boot/config-6.0.7-gentoo.old
- vmlinuz: /boot/vmlinuz-6.0.7-gentoo.old
- modules: /lib/modules/6.0.7-gentoo
- build: /usr/src/linux-6.0.7-gentoo
- last modified: 2022-11-05 05:07:24
➜ l /boot       
Permissions Size User Date Modified Name
drwxr-xr-x     - root  5 Nov 00:57  EFI
drwxr-xr-x     - root 10 Nov 16:37  grub
.rwxr-xr-x  144k root  7 Nov 03:37  config-6.0.7-gentoo
.rwxr-xr-x  144k root  4 Nov 22:07  config-6.0.7-gentoo.old
.rwxr-xr-x  144k root 10 Nov 15:06  config-6.0.8-gentoo
.rwxr-xr-x  5.6M root  7 Nov 03:37  System.map-6.0.7-gentoo
.rwxr-xr-x  5.6M root  4 Nov 22:07  System.map-6.0.7-gentoo.old
.rwxr-xr-x  5.6M root 10 Nov 15:06  System.map-6.0.8-gentoo
.rwxr-xr-x   10M root  7 Nov 03:37  vmlinuz-6.0.7-gentoo
.rwxr-xr-x   10M root  4 Nov 22:07  vmlinuz-6.0.7-gentoo.old
.rwxr-xr-x   10M root 10 Nov 15:06  vmlinuz-6.0.8-gentoo

➜ l /boot/EFI/gentoo/grubx64.efi 
Permissions Size User Date Modified Name
.rwxr-xr-x  135k root  5 Nov 00:57  /boot/EFI/gentoo/grubx64.efi
mgorny commented 1 year ago

Run eclean-kernel -An2 --debug to get full error.

mrturcot commented 1 year ago

k well alright I ran that and the command succeeded with debug info. Now it subsequently works without using "--debug" (I changed nothing) :/ Thanks