IRC chat logs for #ltsp on irc.libera.chat (webchat)


Channel log from 6 July 2023   (all times are UTC)

05:04ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
05:20wyre is back
06:12wyre is now away: Auto away at Thu Jul 6 06:10:30 2023 UTC
08:34wyre is back
10:04wyre is now away: Auto away at Thu Jul 6 10:02:24 2023 UTC
10:34
<toa[m]>
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?
10:54
<alkisg>
To avoid namespace pollution, we ship a single command, /usr/sbin/ltsp. This one in tern sources all the rest.
10:54
turn
10:55wyre is back
11:10
<toa[m]>
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?
11:11
<alkisg>
The following ltsp applets are defined
11:12
ltsp inird-bottom
11:12
https://ltsp.org/man/ltsp/
11:13
LTSP clients also have some additional applets, like initrd-bottom, init and login, but they're not runnable by the user.
11:14
So it's these applets that source all the scripts that you mention
11:20wyre is now away: Auto away at Thu Jul 6 11:18:15 2023 UTC
11:24ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Ping timeout: 250 seconds)
11:27
<toa[m]>
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
11:29
There seems to be some checks for dracut already. But it seems that none of these client init scripts are actually executed in dracut.
11:30
Did you use something in initramfs-tools to verify which script was executed and which was not?
11:36ricotz has joined IRC (ricotz!~ricotz@ubuntu/member/ricotz)
11:39
<alkisg>
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
11:41
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
11:53
<toa[m]>
Ok, I'll see what I can break
11:55wyre is back
12:09wyre is now away: Auto away at Thu Jul 6 12:07:29 2023 UTC
13:17wyre is back
13:50wyre is now away: Auto away at Thu Jul 6 13:44:58 2023 UTC
15:22vagrantc has joined IRC (vagrantc!~vagrant@2600:3c01:e000:21:7:77:0:50)
15:24ogra is now away: currently disconnected
15:24ogra is back
17:15woernie has joined IRC (woernie!~werner@p200300dc0f47eaa832ceb3bd25288380.dip0.t-ipconnect.de)
17:55anavari[m] has joined IRC (anavari[m]!~anavarima@2001:470:69fc:105::3:7deb)
17:58
<anavari[m]>
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.
17:59
<alkisg>
anavari: the normal method is to select "vmdk, fixed size" when you create the VM
17:59
It should also be possible to use vboxmanage to convert from one format into the other
18:01
<anavari[m]>
ok let me search
18:02
<alkisg>
anavari: ah it can be done from the GUI too, from the virtual media manager
18:04
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)
18:04
Then you select vmdk, click next, then [v] preallocate full size, and that way you'll get the vm-flat.vmdk
18:05
At that point delete the .vdi and mount the .vmdk to the VM. And ltsp image will be able to read it.
18:05
<anavari[m]>
thanks
18:06
It is copy in virtual media manager
18:06
<alkisg>
👍️
18:50wyre is back
19:03ricotz has left IRC (ricotz!~ricotz@ubuntu/member/ricotz, Quit: Leaving)
21:04woernie has left IRC (woernie!~werner@p200300dc0f47eaa832ceb3bd25288380.dip0.t-ipconnect.de, Remote host closed the connection)
23:09wyre is now away: Auto away at Thu Jul 6 23:07:29 2023 UTC