|05:04||ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)|
|05:20||wyre is back|
|06:12||wyre is now away: Auto away at Thu Jul 6 06:10:30 2023 UTC|
|08:34||wyre is back|
|10:04||wyre is now away: Auto away at Thu Jul 6 10:02:24 2023 UTC|
The client init scripts like 25-ro-root.sh use custom functions like re, rw and warn. The functions are defined in ltsp/ltsp. However, with my horrible shell programming skills I can't determine where exactly is everything necessary included so that the client init scripts could be executed. Do they go through a wrapper of some kind or what?
To avoid namespace pollution, we ship a single command, /usr/sbin/ltsp. This one in tern sources all the rest.
|10:55||wyre is back|
If I understand this correctly, initramfs-tools runs /usr/sbin/ltsp during early user space when booting the terminal. But how does initramfs-tools know what script to run after that so that for example 25-ro-root.sh gets executed?
The following ltsp applets are defined
LTSP clients also have some additional applets, like initrd-bottom, init and login, but they're not runnable by the user.
So it's these applets that source all the scripts that you mention
|11:20||wyre is now away: Auto away at Thu Jul 6 11:18:15 2023 UTC|
|11:24||ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Ping timeout: 250 seconds)|
Ok, the initrd-bottom applet you mention seems to be https://github.com/ltsp/ltsp/blob/fce44a50e32de67f6c25e77317746e445f075a16/ltsp/client/initrd-bottom/55-initrd-bottom.sh if I'm correct
There seems to be some checks for dracut already. But it seems that none of these client init scripts are actually executed in dracut.
Did you use something in initramfs-tools to verify which script was executed and which was not?
|11:36||ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)|
This is the hook that activates the initrd bottom applet: https://github.com/ltsp/ltsp/blob/fce44a50e32de67f6c25e77317746e445f075a16/ltsp/client/initrd-bottom/initramfs-tools/ltsp-hook.conf
I suggest that you start by reading about dracut hooks and scripts. After 2-3 weeks of getting experience there, then you can involve the ltsp code
Ok, I'll see what I can break
|11:55||wyre is back|
|12:09||wyre is now away: Auto away at Thu Jul 6 12:07:29 2023 UTC|
|13:17||wyre is back|
|13:50||wyre is now away: Auto away at Thu Jul 6 13:44:58 2023 UTC|
|15:22||vagrantc has joined IRC (vagrantc!~vagrant@2600:3c01:e000:21:7:77:0:50)|
|15:24||ogra is now away: currently disconnected|
|15:24||ogra is back|
|17:15||woernie has joined IRC (firstname.lastname@example.org)|
|17:55||anavari[m] has joined IRC (anavari[m]!~anavarima@2001:470:69fc:105::3:7deb)|
hi I am sorry if this one is off topic. my ltsp server is up and running on ubuntu 22.04. Now I want to add a virtualbox image of ubuntu 20.04. I installed it in virtualbox. When I look for a ubuntu-flat.vmdk file it is missing. I see only a vdi and vdi file. How do i make a vmdk file from them.
anavari: the normal method is to select "vmdk, fixed size" when you create the VM
It should also be possible to use vboxmanage to convert from one format into the other
ok let me search
anavari: ah it can be done from the GUI too, from the virtual media manager
If you go to the virtual media manager and right-click on the disk , you should see a menu with the first entry saying either "copy" or "clone" (not sure, my UI is in Greek)
Then you select vmdk, click next, then [v] preallocate full size, and that way you'll get the vm-flat.vmdk
At that point delete the .vdi and mount the .vmdk to the VM. And ltsp image will be able to read it.
It is copy in virtual media manager
|18:50||wyre is back|
|19:03||ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)|
|21:04||woernie has left IRC (email@example.com, Remote host closed the connection)|
|23:09||wyre is now away: Auto away at Thu Jul 6 23:07:29 2023 UTC|