Migration Yunohost 11.3.0.2 towards 12 / lacking space in /boot/

I have searched the forum for similar issues

on

This category is for general issues regarding YunoHost, NOT apps.

on

This form is written in English :uk: but feel free to write in French :fr: if you’re more comfortable!

on

What type of hardware are you using

Old laptop or computer

What YunoHost version are you running

11.3.0.2

How are you able to access your server

The webadmin
SSH
Direct access via physical keyboard/screen

Describe your issue

I have attempted to run the migration to yunohost 12 and received the following error (see below attached logs).

Following this, I have ran dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules' | awk '{ print $2 }' which gave me the following:

linux-image-5.10.0-16-amd64
linux-image-5.10.0-25-amd64
linux-image-5.10.0-26-amd64
linux-image-5.10.0-27-amd64
linux-image-5.10.0-28-amd64
linux-image-5.10.0-29-amd64
linux-image-5.10.0-30-amd64
linux-image-5.10.0-32-amd64
linux-image-5.10.0-33-amd64
linux-image-amd64

And then I ran sudo apt purge linux-image-5.10.0-16-amd64 linux-image-5.10.0-25-amd64 linux-image-5.10.0-26-amd64 linux-image-5.10.0-27-amd64 linux-image-5.10.0-28-amd64 which ran without any issue (all those configuration files were purged successfully).
However, when I retried running the migration, I received the same error as above (...remove old, unused kernels to free up some space in /boot/.)
Any ideas? Any help would be highly appreciated! :pray:

Share relevant logs or error messages

https://paste.yunohost.org/raw/fodijopape

Zmlerf, so if we lookg at df -h | grep "Avail\|boot", do you really have less than 70M available ?

I guess we can also savagely edit the code with nano /usr/lib/python3/dist-packages/yunohost/migrations/0027_migrate_to_bookworm.py and comment / tweak the line but x_x

What’s really confusing is that you had quite a lof of kernels so I would expect removing them to free up more than 70MB

1 Like

First of all, many thanks for the response! Highly appreciated!
So it turns out running

returns the following:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       230M  145M   69M  68% /boot

which is kinda baffling :thinking: should I try to remove a few others? Is it even normal the total size is 230M???

Lulz yeah you just need 1M more :sweat_smile:

230M total is fine~ish … Some provider only configure 100M total by default sometimes (which is really tight and troublesome especially for people not super familiar with cleaning up old kernels which is not a straightforward / trivial operation)

1 Like

I think you should keep only the last kernel, be sure using it before ! assuming you are using linux-image-5.10.0-33-amd64 lokk for it with uname -r

To list the kernels unused

sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`

You can then also remove them like this (an example fore remove the ones ended by -28 ,-29, -30 and -32

sudo rm -rf /boot/*-5.10.0-{28,29,30,32}-*

then do a

sudo apt-get -f install
sudo apt autoremove
sudo update-grub
2 Likes

Hey @rodinux @Aleks - thanks both of you so much for taking the time :heart:
As Aleks said, this is indeed not a straightforward operation. And when I run uname -r it returns surprisingly enough 5.10.0-29-amd64 which makes me a bit afraid to decide which kernel/s I should remove :confused:
Any help would be, again, truly appreciated :pray:

1 Like

Usually upgrading a kernel need a reboot, then the grub will take the last kernel.

But first it’s necessary know if the begin of the migration have do some changes. It seems have just stopped with this warning…
What do yo see in /etc/apt/sources.list and /etc/apt/sources.list.d/yunohost.list ?
what returns yunohost tools versions ?
If nothing have really begin in the script of migration, you should after doing a sudo update-grub first reboot and see if you are using le last kernel, then clean old ones…

Hello @rodinux :wave:
While sudo cat /etc/apt/sources.list shows the following:

# deb cdrom:[Debian GNU/Linux 11 _Bullseye_ - Unofficial amd64 CD Binary-1 20220808-10:55]/ bullseye main non-free

#deb cdrom:[Debian GNU/Linux 11 _Bullseye_ - Unofficial amd64 CD Binary-1 20220808-10:55]/ bullseye main non-free

deb http://ftp.debian.org/debian bullseye main contrib
deb-src http://ftp.debian.org/debian bullseye main contrib

## YunoHost repository
deb http://forge.yunohost.org/debian/ bullseye stable

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates_and_backports
deb http://ftp.debian.org/debian bullseye-updates main contrib non-free
deb-src http://ftp.debian.org/debian bullseye-updates main contrib non-free

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

The file /etc/apt/sources.list.d/yunohost.list does not exist.
Running sudo yunohost tools versions returns:

yunohost:
  repo: stable
  version: 11.3.0.2
yunohost-admin:
  repo: stable
  version: 11.3.0
moulinette:
  repo: stable
  version: 11.3.0
ssowat:
  repo: stable
  version: 11.3.0

I presume this means the no changes were made by the migration? But tbh, I’m not really sure what does this all mean :confused: Should I run sudo update-grub then reboot then run uname -r or should I do something else? Thank you so much for taking the time, this is really kind of you!!

Hello, yes I mean run sudo update-grub then reboot and run uname -r, is excepted the system will boot on last kernel…

It is strange you did not see the sources.list of yunohost ?? Normally /etc/apt/sources.list.d/yunohost.list should be present !

It doesn’t matter, you have the line deb http://forge.yunohost.org/debian/ bullseye stable in your sources.list file, it is the same…

2 Likes

Hey @rodinux - just wanted to thank you again for all the help :heart: :heart:
I got everything sorted out and now I am running on yunohost 12.0.6 :partying_face:

2 Likes