Page 1 of 1

changing kernels on a running live system is now supported :-)

Posted: Tue Sep 20, 2016 3:32 am
by yop
NEWSBREAK: BitJam made a tool to run any kernel you want. :number1:

A few rough edges left but otherwise you will ultimately succeed to change to an alternative kernel starting from e.g. this link

:lion: https://mxu3.github.io/live-kernel-updater :anispider2:

By the time you read this, MX distro has a tool to run any kernel basically. We are working on streamlining the whole process. Stand by. :needcoffee:

The script worked to change kernel in the "local (primary) installed live-MX" as well as a secondary SD-card MX, which was plugged in a USB 3.0 socket.
However, the prior kernel install to be performed might quite possibly issue some error messages. But heck... push on regardless :p .

In case of failure: erase SD-card and retry :fox:

----------------------------------------- old version of the post : :happybday:


changing kernels on a running live system is not yet supported :exclamation: :exclamation: :eek:

meaning: it is not working and screws up the whole system, if you try it. But its poss to unscrew the system afterwards... ;)

was: "no luck with alt. kernels here - which is a stable alternative kernel ?"



on my desktop m/c I usually can run most kernels. yet the alternative debian & liquorix kernel freeze after usb devices are found : fallback shell initrd

the original debian-live works no problem. tried 4 kernels now which are installable from synaptic & mc-tools. always same freezing and initrd fallback shell.

I also tried noacpi , fallback asf. boot options from the extlinux menu which did not change anything.

is there a kernel that is known to be very stable on many hardwares ?

Re: no luck with alt. kernels here - which is a stable alternative kernel ?

Posted: Tue Sep 20, 2016 4:57 am
by m_pav
Never heard of this before, and I've run MX-15 on hundreds of systems and prior to that, MX-14 on thousands, never had a single instance of crash or freezing on USB insertion, though I have seen kernel messages about over voltage on USB ports and instability associated with it. I have also seen how certain graphics chips can be troublesome, in particular Intel Broadwell U, such as my own laptop.

New users used to get some forum guidelines on their first login to assist them with asking for assistance, not sure if that's still happening. Usually, when requesting assistance, you can help us to help you by posting the specs of your machine along with your request. Our manual has good pointers on using the right tools for this purpose, look for inxi 2 lines above section 6.6.

The manual is available either by the Manuals link near the top of this page, or by clicking your Launcher icon and typing help.

Re: no luck with alt. kernels here - which is a stable alternative kernel ?

Posted: Tue Sep 20, 2016 5:09 am
by yop
I run a live-USB KDE-MX-15 which I already remastered several times.

Kernel install as well as uninstall is a pain, because it runs into several errors (dpkg, grub and more). I had to manually delete many files to keep synaptic & apt-get going.

I am not sure whether kernel install / deinst with synaptic & mx-tool can be considered stable.

now the system works, as long as I do not try to uninstall or reinstall those kernels...

safe kernel install poss. ?

Posted: Tue Sep 20, 2016 5:27 am
by yop
it would be helpful if other MX-15 users could tell me whether adding kernels in live-USB usually works well via GUI (synaptic, mx-tools).

Re: no luck with alt. kernels here - which is a stable alternative kernel ?

Posted: Tue Sep 20, 2016 8:00 am
by dolphin_oracle
changing kernels on a running live system is not yet supported. That's a feature that is coming, but its not here yet. It can be done, but its amazingly difficult and manual. The initrd is one of the things that don't get updated correctly (if at all) when new kernels are installed on a live system. Its easy on an installed system, hard on a live system.

On my custom-mx spins that require other kernels (like for my lenovo and chromebook), I install them on a virtual machine, change the kernel, then snapshot the VM install and use the resulting iso to make liveUSBs.

Re: no luck with alt. kernels here - which is a stable alternative kernel ?

Posted: Tue Sep 20, 2016 8:29 am
by yop
would be nice if such info was available before the MX users waste half a day on a non-feature. oh , well... ;-) thx, dolphin! :needcoffee:

Re: changing kernels on a running live system is not yet supported

Posted: Tue Sep 20, 2016 9:03 am
by v3g4n
You also could have asked before wasting half a day. ;)

Re: changing kernels on a running live system is not yet supported

Posted: Tue Sep 20, 2016 9:13 am
by yop
v3g4n wrote:You also could have asked before wasting half a day. ;)
OK, then let me ask another question right on time:

What other things are unsupported, even though the GUI offers it?
I did read the help file, it said nothing on unsupported kernel-changing...
What do I need to ask, before I waste another half a day?

Re: changing kernels on a running live system is not yet supported

Posted: Tue Sep 20, 2016 10:15 am
by Jerry3904
Easy, buddy...

Re: changing kernels on a running live system is not yet supported

Posted: Tue Sep 20, 2016 10:38 am
by dolphin_oracle
changing the kernel is a seemingly reasonable thing to want to do, and live system we employ does tend to make us believe we can do anything with it. and you almost can.

The apt and update-initramfs tools that debian provides for kernel installations assume an installed system, with an init ram drive (initrd) that debian understands and expects, in a location that it expects. Ours has all the custom live boot stuff in it, and is in a location suitable for our live system to allow mounting of the rest of the compressed file system. In fact, its the initrd system that loads the persistence files and does all the other cool magic the live system can do. In a very real way, the initrd lives outside the usual linux filesystem contained in the linuxfs and rootfs squash filesystem files that the live system uses.

Unfortunately it also means that updating the kernel on the live system is fairly complicated and not automatic. Even when this gets supported in the future, it will likely require use of a custom tool to do the job.

custom

Posted: Tue Sep 20, 2016 12:06 pm
by yop
a custom tool or even just a custom help file ("cheat sheet") could probably do the trick...

Re: custom

Posted: Tue Sep 20, 2016 12:15 pm
by dolphin_oracle
yop wrote:a custom tool or even just a custom help file ("cheat sheet") could probably do the trick...

yep... :)

Re: changing kernels on a running live system is not yet supported

Posted: Tue Sep 20, 2016 3:16 pm
by Eadwine Rose
I'd say Yop, since you know exactly what is needed apparently: go right on ahead and create the "cheat sheet", that would help us out a whole lot!

Re: changing kernels on a running live system is not yet supported

Posted: Tue Sep 20, 2016 3:18 pm
by dolphin_oracle

Re: changing kernels on a running live system is not yet supported

Posted: Wed Sep 21, 2016 7:00 am
by yop
Eadwine Rose wrote:I'd say Yop, since you know exactly what is needed apparently: go right on ahead and create the "cheat sheet", that would help us out a whole lot!
will be my pleasure - once I actually did it... (and not having been :eek: banned :eek: from the forum by that time for my outspoken critiques of certain aspects of software ergonomy).

Re: changing kernels on a running live system is not yet supported

Posted: Wed Sep 21, 2016 7:05 am
by yop

how does the live-usb-maker script help to exchange kernels ? Or did I misunderstand :confused:

Re: changing kernels on a running live system is not yet supported

Posted: Wed Sep 21, 2016 8:41 am
by dolphin_oracle
the live kernel updater is also posted in the first post. (I missed it at first as well).

Re: changing kernels on a running live system is not yet supported

Posted: Wed Sep 21, 2016 9:02 am
by Eadwine Rose
yop wrote:
Eadwine Rose wrote:I'd say Yop, since you know exactly what is needed apparently: go right on ahead and create the "cheat sheet", that would help us out a whole lot!
will be my pleasure - once I actually did it... (and not having been :eek: banned :eek: from the forum by that time for my outspoken critiques of certain aspects of software ergonomy).

Thanks and we will be looking forward to your contribution.

Also remember that you may critique things, but when you are in a small community and a relatively small distro with only few hands to work on development it is more appreciated to actually offer some help. "Hey guys, how can I help make this better?". Don't just tell what is wrong, help fix it. Otherwise critique can easily be seen as bashing.

Re: changing kernels on a running live system is not yet supported

Posted: Wed Sep 21, 2016 10:56 am
by BitJam
Here is the thread for the live-kernel-updater. I had sent d.o. a link to the wrong thread. Sorry.

changing kernels is now supported :-)

Posted: Thu Sep 22, 2016 3:33 pm
by yop
amazing, yeah?

BitJam made the tool to run any kernel you want on an already USER CONTROLLED distro.

A few rough edges left but otherwise you will ultimately succeed to change to an alternative kernel starting from e.g. this link : :hug:


https://mxu3.github.io/live-kernel-updater


The liquorix kernel does make quite a difference on my desktop machine of yesteryear... ;-)

Re: changing kernels on a running live system is not yet supported

Posted: Thu Sep 22, 2016 3:36 pm
by Jerry3904
BitJam is pretty awesome...

Re: changing kernels on a running live system is not yet supported

Posted: Thu Sep 22, 2016 3:53 pm
by entropyfoe
This reminds me of an old joke...

A car mechanic is doing a valve job on a cardiac surgeon's BMW and asks, how come when I do a valve job I get 400$.
When you do a valve job you get 40,000 dollars.

To which the surgeon replied, that's because when I do the valve job, I do it while the engine is running.

changing kernels on a running live system is supported

Posted: Thu Sep 22, 2016 4:08 pm
by yop
Ha !

"BMW" was the most hilarious part of it.

Re: changing kernels on a running live system is now supported :-)

Posted: Thu Sep 22, 2016 4:41 pm
by skidoo
Wow, and Bravo!
Sending these as pull request to BitJam would be a lot more efficient than me sending betatester notes via PMs.
I gotta get on the github bandwagon. What client+workflow (or a tutorial link) do you folks recommend?
https://github.com/mxu3/live-kernel-upd ... 6acb80d7a2
https://github.com/mxu3/live-kernel-upd ... 96fad7b261

https://github.com/mxu3/live-kernel-upd ... 5429a5b97d
^------- @line9 (ought to set your editor to strip trailing whitespace at save, eh)

Re: changing kernels on a running live system is now supported :-)

Posted: Thu Sep 22, 2016 5:02 pm
by dolphin_oracle
skidoo wrote:Wow, and Bravo!
Sending these as pull request to BitJam would be a lot more efficient than me sending betatester notes via PMs.
I gotta get on the github bandwagon. What client+workflow (or a tutorial link) do you folks recommend?
https://github.com/mxu3/live-kernel-upd ... 6acb80d7a2
https://github.com/mxu3/live-kernel-upd ... 96fad7b261

https://github.com/mxu3/live-kernel-upd ... 5429a5b97d
^------- @line9 (ought to set your editor to strip trailing whitespace at save, eh)
I fork whatever git repo I want to work with using the github web interface. then clone that to my pc from the command line ( git clone address). I make and sync all.my changes to my personnel git forks then use the website pull request tool to send the pull requests. Since I work on antix.and mxlinux this work flow works for me both ways.

Re: changing kernels on a running live system is now supported :-)

Posted: Fri Sep 23, 2016 11:34 am
by yop
swapped another kernel which worked, but still a lil non-smoothness remains in synaptic. But I run MX with a 4.7 kernel. fair enough.