doing the following from my home directory: sudo eclean-kernel -aA Note: referenced kernel does not exist: /boot/home/derk/(hd0,0)/boot/vmlinuz-3.1.1-gentoo Note: referenced kernel does not exist: /boot/home/derk/(hd0,0)/boot/vmlinuz-3.1.0-gentoo-r1 Preserving currently running kernel (3.1.1-gentoo) Remove 3.1.0-gentoo (not referenced by bootloader (grub))? [Yes/No]y * Removing kernel 3.1.0-gentoo (not referenced by bootloader (grub)) - /boot/vmlinuz-3.1.0-gentoo - /boot/System.map-3.1.0-gentoo - /boot/config-3.1.0-gentoo - /lib64/modules/3.1.0-gentoo - /usr/src/linux-3.1.0-gentoo Remove 3.0.7-gentoo (not referenced by bootloader (grub))? [Yes/No]y * Removing kernel 3.0.7-gentoo (not referenced by bootloader (grub)) - /boot/vmlinuz-3.0.7-gentoo - /boot/System.map-3.0.7-gentoo - /boot/config-3.0.7-gentoo - /lib64/modules/3.0.7-gentoo Remove 3.1.0-gentoo-r1 (not referenced by bootloader (grub))? [Yes/No]n from the / directory we get: sudo eclean-kernel -aA Password: Note: referenced kernel does not exist: /boot/(hd0,0)/boot/vmlinuz-3.1.1-gentoo Note: referenced kernel does not exist: /boot/(hd0,0)/boot/vmlinuz-3.1.0-gentoo-r1 Preserving currently running kernel (3.1.1-gentoo) Remove 3.1.0-gentoo-r1 (not referenced by bootloader (grub))? [Yes/No]n my grub is as follows: # grub.conf default 0 timeout 30 splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Gentoo Linux 3.1.1 root (hd0,0) kernel (hd0,0)/boot/vmlinuz-3.1.1-gentoo root=/dev/sda1 title Gentoo Linux 3.1.0-r1 root (hd0,0) kernel (hd0,0)/boot/vmlinuz-3.1.0-gentoo-r1 root=/dev/sda1 seems the current script does not deal well with "uncommon grub.conf setups" grub.conf has to be this way on this box or grub does not find stuff .. a quirk
oops forgot this is the latest version app-portage/eclean-kernel-0.1.4
same on this machine as well identical causes I imagine: sudo eclean-kernel -aA Note: referenced kernel does not exist: /boot/home/derk/(hd0,1)/boot/vmlinuz-3.1.1-gentoo Note: referenced kernel does not exist: /boot/home/derk/(hd0,1)/boot/vmlinuz-3.1.0-gentoo-r1 Note: referenced kernel does not exist: /boot/home/derk/(hd0,1)/boot/vmlinuz-3.1.0-gentoo Preserving currently running kernel (3.1.1-gentoo) Remove 3.1.0-gentoo (not referenced by bootloader (grub))? [Yes/No]n Remove 3.1.0-gentoo-r1 (not referenced by bootloader (grub))? [Yes/No]n Remove 3.0.7-gentoo (not referenced by bootloader (grub))? [Yes/No]n Remove 3.0.6-gentoo (not referenced by bootloader (grub))? [Yes/No]n Remove 3.1.0-gentoo.old (not referenced by bootloader (grub))? [Yes/No]n this grub conf is: default 0 timeout 30 splashimage=(hd0,1)/boot/grub/splash.xpm.gz title Gentoo ZLINK1 current 3.1.1 root (hd0,1) kernel (hd0,1)/boot/vmlinuz-3.1.1-gentoo root=/dev/sda2 title Gentoo ZLINK1 current 3.1.0-r1 root (hd0,1) kernel (hd0,1)/boot/vmlinuz-3.1.0-gentoo-r1 root=/dev/sda2 title Gentoo ZLINK1 current 3.1.0 root (hd0,1) kernel (hd0,1)/boot/vmlinuz-3.1.0-gentoo root=/dev/sda2 # removed two kernel references to test #title Windows Vista/Longhorn (loader) #root (hd0,0) #savedefault #makeactive #chainloader +1
~ $ cd /home /home $ sudo eclean-kernel -aA Note: referenced kernel does not exist: /boot/home/(hd0,1)/boot/vmlinuz-3.1.1-gentoo Note: referenced kernel does not exist: /boot/home/(hd0,1)/boot/vmlinuz-3.1.0-gentoo-r1 Note: referenced kernel does not exist: /boot/home/(hd0,1)/boot/vmlinuz-3.1.0-gentoo Preserving currently running kernel (3.1.1-gentoo) Remove 3.1.0-gentoo (not referenced by bootloader (grub))? [Yes/No]n Remove 3.1.0-gentoo-r1 (not referenced by bootloader (grub))? [Yes/No]n Remove 3.1.0-gentoo.old (not referenced by bootloader (grub))? [Yes/No]n Remove 3.0.7-gentoo (not referenced by bootloader (grub))? [Yes/No]n Remove 3.0.6-gentoo (not referenced by bootloader (grub))? [Yes/No]n same machine as comment #2 just showing additional current directory example ..
additional info as per README: second machine only eclean-kernel -l 3.1.1-gentoo: - vmlinuz: /boot/vmlinuz-3.1.1-gentoo - systemmap: /boot/System.map-3.1.1-gentoo - config: /boot/config-3.1.1-gentoo - modules: /lib64/modules/3.1.1-gentoo - build: /usr/src/linux-3.1.1-gentoo 3.0.7-gentoo: - vmlinuz: /boot/vmlinuz-3.0.7-gentoo - systemmap: /boot/System.map-3.0.7-gentoo - config: /boot/config-3.0.7-gentoo - modules: /lib64/modules/3.0.7-gentoo 3.0.6-gentoo: - vmlinuz: /boot/vmlinuz-3.0.6-gentoo - systemmap: /boot/System.map-3.0.6-gentoo - config: /boot/config-3.0.6-gentoo - modules: /lib64/modules/3.0.6-gentoo 3.1.0-gentoo: - vmlinuz: /boot/vmlinuz-3.1.0-gentoo - systemmap: /boot/System.map-3.1.0-gentoo - config: /boot/config-3.1.0-gentoo - modules: /lib64/modules/3.1.0-gentoo - build: /usr/src/linux-3.1.0-gentoo 3.1.0-gentoo.old: - vmlinuz: /boot/vmlinuz-3.1.0-gentoo.old - systemmap: /boot/System.map-3.1.0-gentoo.old - config: /boot/config-3.1.0-gentoo.old - modules: /lib64/modules/3.1.0-gentoo - build: /usr/src/linux-3.1.0-gentoo 3.1.0-gentoo-r1: - vmlinuz: /boot/vmlinuz-3.1.0-gentoo-r1 - systemmap: /boot/System.map-3.1.0-gentoo-r1 - config: /boot/config-3.1.0-gentoo-r1 - modules: /lib64/modules/3.1.0-gentoo-r1 - build: /usr/src/linux-3.1.0-gentoo-r1 ls -l /boot /lib/modules /boot: total 47176 -rw-r--r-- 1 root root 2767898 Oct 5 18:07 System.map-3.0.6-gentoo -rw-r--r-- 1 root root 2767811 Oct 18 22:18 System.map-3.0.7-gentoo -rw-r--r-- 1 root root 2824688 Oct 28 15:40 System.map-3.1.0-gentoo -rw-r--r-- 1 root root 2824688 Nov 7 18:45 System.map-3.1.0-gentoo-r1 -rw-r--r-- 1 root root 2824580 Oct 25 14:38 System.map-3.1.0-gentoo.old -rw-r--r-- 1 root root 2825212 Nov 14 19:23 System.map-3.1.1-gentoo lrwxrwxrwx 1 root root 1 Aug 26 09:32 boot -> . -rw-r--r-- 1 root root 88403 Oct 5 18:07 config-3.0.6-gentoo -rw-r--r-- 1 root root 88403 Oct 18 22:18 config-3.0.7-gentoo -rw-r--r-- 1 root root 91108 Oct 28 15:40 config-3.1.0-gentoo -rw-r--r-- 1 root root 91111 Nov 7 18:45 config-3.1.0-gentoo-r1 -rw-r--r-- 1 root root 89496 Oct 25 14:38 config-3.1.0-gentoo.old -rw-r--r-- 1 root root 91132 Nov 14 19:23 config-3.1.1-gentoo drwxr-xr-x 2 root root 4096 Nov 16 20:13 grub -rw-r--r-- 1 root root 5091616 Oct 5 18:07 vmlinuz-3.0.6-gentoo -rw-r--r-- 1 root root 5091584 Oct 18 22:18 vmlinuz-3.0.7-gentoo -rw-r--r-- 1 root root 5148064 Oct 28 15:40 vmlinuz-3.1.0-gentoo -rw-r--r-- 1 root root 5148000 Nov 7 18:45 vmlinuz-3.1.0-gentoo-r1 -rw-r--r-- 1 root root 5148032 Oct 25 14:38 vmlinuz-3.1.0-gentoo.old -rw-r--r-- 1 root root 5148288 Nov 14 19:23 vmlinuz-3.1.1-gentoo /lib/modules: total 20 drwxr-xr-x 4 root root 4096 Oct 5 18:17 3.0.6-gentoo drwxr-xr-x 4 root root 4096 Oct 25 14:07 3.0.7-gentoo drwxr-xr-x 4 root root 4096 Nov 5 07:49 3.1.0-gentoo drwxr-xr-x 4 root root 4096 Nov 7 18:49 3.1.0-gentoo-r1 drwxr-xr-x 4 root root 4096 Nov 14 19:26 3.1.1-gentoo
(In reply to comment #0) > title Gentoo Linux 3.1.1 > root (hd0,0) > kernel (hd0,0)/boot/vmlinuz-3.1.1-gentoo root=/dev/sda1 > > title Gentoo Linux 3.1.0-r1 > root (hd0,0) > kernel (hd0,0)/boot/vmlinuz-3.1.0-gentoo-r1 root=/dev/sda1 > > > seems the current script does not deal well with "uncommon grub.conf setups" > grub.conf has to be this way on this box or grub does not find stuff .. a quirk Yes, I'm sorry, I don't have grub myself and I wasn't aware of this syntax. I'll fix it ASAP, probably by stripping of the '(hd*,*)' prefix.
Ok, this one should be fixed in 5b07da3. eclean-kernel now simply ignores those device specifiers.
And released 0.1.5 with the fix.
Thanks Michal .. work fine now