upgrade-kernel failed to work in fossadog.i recently apt dist-upgraded the fassadog,when i tried to upgrade kernel with upgrade-kernel ,it worked bad. it did tell me it generated the kernel and initrd when it poped up that mesage box at last step ,but no kernel and initrd was acually generated. I tried many times,it is sure that upgrade-kernel doesnt work well.
upgrade-kernel failed to work in fossadog[solved]
Moderator: fredx181
-
- Posts: 76
- Joined: Thu Sep 24, 2020 3:53 am
- Has thanked: 10 times
- Been thanked: 9 times
upgrade-kernel failed to work in fossadog[solved]
- fredx181
- Posts: 3088
- Joined: Tue Dec 03, 2019 1:49 pm
- Location: holland
- Has thanked: 376 times
- Been thanked: 1315 times
- Contact:
Re: upgrade-kernel failed to work in fossadog
helloworld wrote: ↑Thu May 11, 2023 1:03 pmupgrade-kernel failed to work in fossadog.i recently apt dist-upgraded the fassadog,when i tried to upgrade kernel with upgrade-kernel ,it worked bad. it did tell me it generated the kernel and initrd when it poped up that mesage box at last step ,but no kernel and initrd was acually generated. I tried many times,it is sure that upgrade-kernel doesnt work well.
Yes, had a look at it now, it's because of changes at the Ubuntu end (note that I'm not really maintaining FossaDog anymore, there may be other problems too because of Ubuntu changes).
Should be fixed by installing latest upgrade-kernel v1.0.8 with apt or download and install deb:
https://debiandog.github.io/FossaDog/Pa ... .8_all.deb
Needs testing more though, I just fixed some things in the upgrade-kernel script and ran without errors for me, but didn't test booting with the new kernel (newest 5.4 = 5.4.0-148-generic at this time).
i recently apt dist-upgraded the fossadog
Is it still the "Focal Fossa" release after upgrading ?, if so then upgrade-kernel should work, but probably (?) not if you (dist) upgraded to next release, e.g. Jammy.
-
- Posts: 76
- Joined: Thu Sep 24, 2020 3:53 am
- Has thanked: 10 times
- Been thanked: 9 times
Re: upgrade-kernel failed to work in fossadog
Thanks for the reply.Yes,it is fossadog,not jammy.I tried new upgrade-kernel,it worked well.Thanks for your work.
Re: upgrade-kernel failed to work in fossadog[solved]
How does upgrade-kernel select the new kernel? I tried it and it built 5.4.0-200, but I found 5.15.0-97 in the repository.
I am having problems with wifi. I found a thread on some ubuntu forum saying that the entire 5.4 series has wifi problems. Indeed, 5.4.0-200 did not solve mine.
- fredx181
- Posts: 3088
- Joined: Tue Dec 03, 2019 1:49 pm
- Location: holland
- Has thanked: 376 times
- Been thanked: 1315 times
- Contact:
Re: upgrade-kernel failed to work in fossadog[solved]
Luluc wrote: ↑Sun Nov 17, 2024 5:48 amHow does upgrade-kernel select the new kernel? I tried it and it built 5.4.0-200, but I found 5.15.0-97 in the repository.
I am having problems with wifi. I found a thread on some ubuntu forum saying that the entire 5.4 series has wifi problems. Indeed, 5.4.0-200 did not solve mine.
Yes, it will update only to the newest "standard" (5.4) kernel (linux-image-generic).
Here's a kernel "package" 5.15.0-125 that I made:
https://github.com/DebianDog/FossaDog/r ... ric.tar.gz
Extract in the 'casper' folder (must replace existing initrd1.xz and vmlinuz, backup these first).
I tested and it's booting ok, but don't know if it will solve your wifi problem.
edit: improvement is also that it can boot from nvme drive.
Re: upgrade-kernel failed to work in fossadog[solved]
Thanks once again. It boots and seems to work fine.
It didn't solve my wifi problems though.
How do you make the kernel? I wish I didn't have to depend on you. Having to beg for stuff that was readily available on regular distros was the reason I gave up on Puppy 14 years ago.
- fredx181
- Posts: 3088
- Joined: Tue Dec 03, 2019 1:49 pm
- Location: holland
- Has thanked: 376 times
- Been thanked: 1315 times
- Contact:
Re: upgrade-kernel failed to work in fossadog[solved]
Luluc wrote: ↑Sun Nov 17, 2024 4:45 pmThanks once again. It boots and seems to work fine.
It didn't solve my wifi problems though.How do you make the kernel? I wish I didn't have to depend on you. Having to beg for stuff that was readily available on regular distros was the reason I gave up on Puppy 14 years ago.
Basically what I did (includes some trial and error, but you may get the picture):
- Installed the kernel + linux-modules-extra (required for aufs support) from synaptic
- Ran from terminal /usr/local/cr-initrd/mkinitrd
(it's part of the upgrade-kernel package, see below for newer version) and chose for the new kernel just installed, to create new initrd1.xz
- Copy the created /tmp/initrd1.xz to folder casper in the frugal install (replaced)
- Copy /boot/vmlinuz-5.15.0-125-generic to the casper folder (renamed to vmlinuz)
- To test, rebooted with saved changes
- Found that it didn't boot from my nvme drive
- Made some changes for initrd creating to support nvme
- Once that was fixed, created .squashfs from lib/modules including only the new kernel, copied it to the casper folder
The lib/modules/5.15.0-125-generic directory can be deleted from the changes then, since booted with the kernel .squashfs
Now made new upgrade-kernel package v1.0.9 apt update; apt install upgrade-kernel
, the created initrd1.xz with mkinitrd will be much smaller and supports booting from nvme .
EDIT: Just now also added to repo: upgrade-kernel-mod, installing it will replace upgrade-kernel apt update; apt install upgrade-kernel-mod
Difference with upgrade-kernel is that it will search for the latest version unsigned generic kernel (5.15 series now).
(so using this (running upgrade-kernel
) will give similar result as when doing all above steps )
Re: upgrade-kernel failed to work in fossadog[solved]
When fossa is booting, there is this message:
Code: Select all
^ copying content of /mnt/sda1/fossa/casper/rootcopy directory
After I installled the new kernel you provided, now the following is added:
Code: Select all
sh: 255: unknown operand
Does that matter?
Another side effect is that the bootup sequence font is now large and ugly. It becomes small and better looking after a while, near the end of the bootup sequence. Not really important, just FYI FWIW.
- fredx181
- Posts: 3088
- Joined: Tue Dec 03, 2019 1:49 pm
- Location: holland
- Has thanked: 376 times
- Been thanked: 1315 times
- Contact:
Re: upgrade-kernel failed to work in fossadog[solved]
Luluc wrote: ↑Tue Nov 19, 2024 8:50 pmWhen fossa is booting, there is this message:
Code: Select all
^ copying content of /mnt/sda1/fossa/casper/rootcopy directory
The rootcopy is an extra feature, put folders/files in there and it will be copied to the system.
Note that these will overwrite files if also in the save storage (and also other files will be overwritten, if I remember well).
Code: Select all
sh: 255: unknown operand
Does that matter?
No.
I never could find out where it comes from exactly, but also never noticed anything wrong that might have caused by that.