libera/#devuan/ Saturday, 2025-04-19

h2hello folks00:37
h2I just realised that daedalus-backports contains a nice new kernel (6.12) but it does not contain zfs-dkms in a version that is compatible. OTOH debian-testing does contain an updated zfs-dkms in its backports. Is our lack thereof a known issue? Can/should I report that anywhere else but here?00:40
XenguyLurk for awhile, someone will eventually answer I expect00:40
gnarfaceh2: the i386 and amd64 kernels are unforked Debian packages, report it to Debian00:42
gnarfaceit appears that zfs-dkms is too, so this is all them00:43
h2Yeah, the kernels are fine, zfs-dkms is the problem. Debian has an updated version in the backports; we don't AFAICT.00:43
gnarfaceoh, hmm, that's unusual...00:43
gnarfaceminus a mirror sync delay we should inherit all their packages automatically, if not something has gone wrong00:44
gnarfaceyou're saying zfs-dkms 2.3.1-1~bpo12+1 currently in daedalus-backports is too old?00:44
h2I am not seeing that one, I am just getting `2.1.11-1+deb12u1`00:45
gnarfacethat appears to be basically the same version as we have in testing and unstable00:45
gnarfaceyou might have a local issue00:45
gnarfacehttps://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&q=%5Ezfs-dkms%24&x=submit00:45
gnarfaceor it's the mirror sync delay00:45
h2Yeah, I'd be happy to have that one. Maybe my mirror is out of date00:45
gnarfacepkginfo.devuan.org is the authoritative source if you ever need to check00:46
h2Thanks, I was always missing a web-frontend like packages.debian.org!00:46
gnarfaceno problem00:47
gnarfacedo you have a private mirror or are you using one of the official ones?00:47
h2I am using ftp.fau.de which is official, I think00:48
gnarfaceyea, it's on the list (http://deb.devuan.org/mirror_list.txt)00:48
gnarfacei think anywhere from 0.5 to 2 hours delay is normal, if it stays stale longer than that, bring it up again so someone here can escalate00:49
h2I'd be surprised if the zfs-dkms package update landed so recently. I just set up a new system today...00:51
gnarfacehmmm00:54
gnarfacei wonder if that info is actually shown anywhere...00:55
h2Hm... I changed to the official mirror, but I am still not getting the  backports-version of zfs-dkms00:56
gnarfacefirst attempt worked fine for me with deb.devuan.org, can i sanity check your sources.list for you? (just paste it at paste.debian.net or /msg it to me)00:57
h2It seems to update correctly:00:58
h2```00:58
h2Holen:48 http://deb.devuan.org/merged daedalus-backports/contrib amd64 Packages [5.704 B]00:58
h2[....]00:58
h2# apt install zfs-dkms00:58
h2Paketlisten werden gelesen… Fertig00:58
h2Abhängigkeitsbaum wird aufgebaut… Fertig00:58
rrqh2: you have done "apt-get update" ? what does "apt-cache policy zfs-dkms" say?00:58
gnarfaceh2: woah woah... anti-flood bot triggered. that's why i suggested to /msg it to me or use paste.debian.net00:58
gnarfaceh2: don't panic, it'll clear in a minute or two00:59
gnarface... i think00:59
fsmithredyeah, if not I can fix it00:59
fsmithredwhich will take me longer than a minute, so I'm waiting01:00
gnarfaceok, you should be able to talk again, h201:00
gnarfacedon't paste more than 3 lines at a time01:00
h2sorry, about that, my last time in IRC has been a while 🙈01:01
gnarfacedo you happen to be using a proxy?01:01
gnarfacecaching proxy for apt, i mean01:01
gnarfacethe delay could be coming from that, or a "transparent" ISP level proxy01:02
rrqh2: what does "apt-cache policy zfs-dkms" say?01:02
h2Also, I think it was a PEBKAC 😅01:02
h2I just didn't adjust the apt-preferences correctly. I will do that now, but pretty sure that's it.01:02
gnarfaceno worries01:03
h2It seems to have worked! Thanks for your time. At least I learned about pkginfo.devuan.org as a bonus ;-)01:10
gnarfacecheers! happy friday!01:12
h2To you, too!01:12
S0urceHi there, I have a quick question what is the alternative for chkconfig to disable enable service in sysVinit?11:47
zmomentHi, I need some guidance, as I'm not being able to find the right instrutions for this.11:53
zmomentFrom a net iso, I've installed Devuan into a LVM that sits inside a cryptsetup luks container.11:54
zmomentGrub didn't install from the installer, but I chrooted and installed it.11:54
zmomentWhen booting, grub asks for the password, then I can choose Devuan as the first option to boot, from the menu.11:55
zmomentThe problem sits, I think, in the initramfs.11:55
zmomentThe system doesn't boot, gives me a shell, and lsmod | grep lvm shows no module.11:56
zmomentProbably, I need to build a custom initramfs.11:56
zmomentIs there any guide someone can point me to for this specific use case (lvm inside a luks container), please?11:57
rrqupdate-rc.d11:57
S0urcerrq do we need to install this command? or it comes with the base?11:58
rrqbut sysvinit kicks in after initrd11:58
zmomentI chose OpenRC.11:58
rrqwhichever.. the init comes after the /init script in the initrd11:59
S0urceI don't seem to have update-rc.d in my system11:59
rrqits for sysvinit (which you asked about :)11:59
S0urceyes, I have Devuan installed with sysvinit, but I can't find this command. Sorry new to linux coming from FreeBSD world12:00
rrqopenrc does something else I guess .. but if your problem is with initrd all that is irrelevant (comes later)12:00
rrqthe linux boot is a two-stage thing12:01
rrqfirstly the initrd /init script is run, and it ends with a switch-root to the root filesystem which contiains "an init system"12:01
rrqif I understand right, you have a luks-encrypted disk/partition with an lvm inside, and a root filesystem in that lvm ?12:03
S0urceokay my problem is the want to disable bluetooth service, but not removing it, in FreeBSD we do something in the /etc/rc.conf servicename_enabled="NO" or "YES", how I can diable the service in sysVinit12:03
S0urcerrq, yes12:04
rrqwith sysveinit, it'd be "update-rc.d bluetoothd disable" ... (if it's the noremal bluetoothd)12:05
rrqthat command is available within the root filesystem but probably not in the initrd12:05
rrqservices are a second stage thing12:06
rrqyou may have "rfkill" in the initrd for turning on/off the device12:06
rrqjust type "rfkill" to check12:07
S0urceworked rrq, thank you so much12:08
rrqnw12:08
S0urcewill check rfkill as well, cheers mate12:09
fsmithredzmoment, if /boot is inside the encrypted volume there needs to be a line in /etc/default/grub for it to work. I'll look it up.12:28
zmomentYes, /boot is inside the encrypted volume.12:28
fsmithredGRUB_ENABLE_CRYPTODISK=y12:33
fsmithredthat goes in /etc/default/grub and then run update-grub12:33
zmomentI already had that line.12:42
S0urcefsmithred, does they need to add the uuid of the partition there as well?12:42
zmomentBooted from a live image, did the mount --bind of /dev, /proc/ and /sys, chroot, but cannot run any command, there's an error while loading shared libraries: libpcre2.8.so.012:43
zmomentThe initramfs doesn't seem to have the lvm kernel module.12:43
fsmithredmake sure you do 'su -' and not just 'su' to become root. different PATH12:48
fsmithredthe uuid does not need to be inside /etc/default/grub.12:49
zmomentI already solved the error regarding the shared libraries.12:50
fsmithredwhat was it?12:50
zmomentI forgot to mount /usr and /var that sit on different LVM partitions.12:51
fsmithredoh!12:51
zmomentSo, back to the boot problem :-)12:51
fsmithredyou tried rebuilding initramfs in the chroot?12:51
zmomentNot yet.12:54
zmomenthow to do it?12:54
zmomenthave to insert lvm modules in /etc/initramfs-tools?12:56
fsmithredupdate-initramfs -u13:00
fsmithredI think they should be included by default13:00
fsmithredI think that file should say something like "modules MOST"13:01
fsmithredthat's the default setting unless you chose otherwise during install13:02
zmomentDid the update-initramfs -u.  When doing lsinitramfs -l /boot/initrd.img-6.1.0-10.amd64 | grep module | grep -i lvm   shows nothing13:05
zmomentalthough the same lsinitramfs -l ... | grep -i lvm, shows several files under etc/lvm13:06
zmomentans usr/lib/udev/rules.d/56-lvm.rules and 69-lvm.rules13:06
fsmithredI'm not sure what all should be there13:08
fsmithredI've done this and I know it works, but I can't think of what's wrong here13:09
zmomentI'm going to reboot13:09
fsmithredok13:09
zmomentDrops to the initramfs shell again.  Says "ALERT! /dev/mapper/vg0-root does not exist."13:11
rrqthis short story seems relevant https://bbs.archlinux.org/viewtopic.php?id=25532913:24
rrqbut /etc/mkinitcpio.conf is not something I recognise13:27
al1r4di am not aware if the apt source list has been modernized.13:29
rrqzmoment: is your GRUB_CMDLINE_LINUX similar to that last post?13:32
rrqal1r4d: not sure "modernised" is the right word ... M$-ified seems more like it13:35
zmomentrrq: In /etc/default/grub, GRUB_CMDLINE_LINUX=""13:43
zmomentI'll update it.13:43
zmomentFor the cryptdevice=UUID=UUIDofdevice, is that one of the /dev/nvme0n1p2 (unencrypted) or the /dev/mapper/something already decrypted?13:44
rrqI'm not an lvm expert, but hpoing that root= setup would tell the kernel to spin up the volume group vg0 and locate the volume "root" in that13:44
rrqprovided the kernel already has lvm2 loaded I guess13:45
rrqI read it as cryptdevice=UUID=UUIDofdevice:vg013:47
rrqhmm maybe that is handled by initrd ?13:49
rrqwould make sense.. the /init of the initrd is shell scripting so you can inspect it; it uses scripts in /scripts/**13:50
rrqso the /init scripting would interpret the cryptdevice= parameter so as to sping up the vg0 volume group13:52
rrqor whatever it's called: to make a symbolic /dev/mapper/vg0-root for the dm-N device concerned13:53
zmomentShould I go with /usr/sbin/update-grub or /usr/sbin/update-grub2?14:01
rrqI would have thought they are the same14:03
rrquse grub3 I guess14:03
rrqgrub214:03
rrq /usr/sbin/update-grub2 -> update-grub14:05
rrqthose parameteres are declared for grub so it can pass them to the linux command line so that the initrd init scripting can discover them14:06
rrqall that happens after the decryption, since the kernel and initrd reside within the encrypted disk14:08
rrq(grub has its decryption s/w outside if that)14:09
zmomentRebooted but have the same problem.  Have to check where's the issue.14:14
rrqthe initrd init scripts reside under /usr/share/initramfs-tools/ of the root filsystem14:18
rrqtaken from there when making the initrd14:18
rrqthere should be some lvm snippet that activates the volume group14:19
rrqperhaps scripts/local-top/lvm214:22
rrqhmm before that there needs to be a dmsetup for the disk decryption14:25
rrqI'm not sure what grub does to handle that boot is encrypted, but when the kernel is started it needs to have a dm device for channeling disk access14:27
rrqpossibly grub has its own decryption handling for the kernel and to unpack the initrd into ram, and that the initrd would have crypt* snippet to set up that decryption device14:31
rustytaco /boot isnt encrypted tho14:57
rrqI think zmoment said it's full-disk encryption14:59
zmomentThis /boot is at /dev/vg0/boot, so as a logical volume inside the encrypted partition /dev/nvme0n1p215:09
al1r4drrq: i dont understand why you put microsoft o_o15:10
rrqI see it in the new-found love of .ini files ... (I have been wrong sometimes though)15:11
zmomentrrq: in /usr/share/initramfs-tools/scripts/local-top there's only two scripts: cryptopensc and cryptroot, no lvm2.15:20
rrqyou have /usr/share/initramfs-tools/hooks/lvm2 ?15:21
zmomentyes15:22
rrqI think that shuld be enough for handling the lvm ... when you drop to the initramfs shell, is the disk decrypted?15:24
rrqis there a /dev/mapper/... for that disk?15:24
zmomentI'll check that in next reboot.15:25
zmomentThere are two different grub.cfg.  One at the encrypted /boot/grub/grub.cfg, another one at the unencrypted /boot/efi/EFI/debian/grub.cfg.15:26
rrqhmm shouldn't there be a scripts/local-top/lvm2 ?15:26
zmomentCould the system be booting from the efi grub.cfg instead of the other one?  update-grub updated /boot/grub/grub.cfg, not /boot/efi/EFI/debian/grub.cfg.15:27
fsmithredthe grub.cfg in efi should just source the other grub.cfg. That's how the live isos are made.15:29
rrqis it an UEFI boot?15:31
zmomentyes15:31
rrqand the EFI partition is not encrypted15:31
zmomentNot encrypted.  It's /dev/nvme0n1p1.  I mounted it at /boot/efi15:32
zmomentRegarding your previous question, when booting the initramfs has no /dev/mapper15:33
rrqright. that suggests that the decryption has not happened... but I guess you do enter the password?15:34
zmomentFrom the initramfs shell, I was able to open the encrypted partition and do a vgchange -ay.  So, it has the necessary modules.15:35
rrqok.. but the efi boot doesn't decrypt (it knows the name of the root in some way..)15:36
rrqor do you enter the password once before dropping into initramfs shell ?15:37
zmomentI enter a password before dropping into initramfs shell.15:38
rrqok. so efi boot does decrypt... but drops all that after unpacking initrd, then that initrd doesn't decrypt15:41
rrqwould be cryptroot I guess15:41
rrqthough it's the full disk to be decrypted15:42
rrqI don't have any example to look into those crypt* scripts ... perhaps they want some different boot parameter15:44
rrqthere may be an /etc/crypttab .. which needs to be in initramfs15:44
zmomentCreate a  /etc/crypttab for the /dev/mapper/vg0-root?15:47
rrqit needs to be for the encrypted disk15:48
rrqfor nvme0n1p2 ... not sure what the target should be15:49
rrqwould be the "physical device" name used in the volume group15:50
rrqbut the decryption should be "operated" by efi-grub, using the password already entered15:53
rrqor does efi-grub drop that into a file ?15:57
zmomentOk, main problem solved.   Can already boot to my fresh Devuan system, but have to enter the password for the encrypted disk two times.15:58
zmomentThanks a lot rrq!15:58
rrqgreat :)15:59
rrqyou could inspect the filesystem at the initramfs shell if there is some password file hanging around16:00
zmomentpassword file?16:00
rrqjust in case efi-grub writes the password into a file, to be used in the subsequent decryption16:01
rrqthat's a transient file within the initrd unpacking in ram16:01
rrqif there is one it probably starts with a dot16:01
rrqanyhow, typing the password twice is not too onerus I suppose16:04
fsmithredin the normal case with full-disk encryption, you have to enter the passphrase twice16:04
fsmithredI found it annoying enough to not use fde16:05
zmomentBut some years ago, I configured the boot system to ask only once for the password.16:06
zmomentNow cannot log in.  Either defined some mistyped password, or there's something wrong.  The default password for root (toor) doesn't work, too.16:12
rrqif you drop back to iniramfs shell, you can do the manual decryption and mounting of root filesystem and then chroot into it, to do passwd things16:15
rrqI don't think there's a default root password btw16:15
rrqfwiw I do neither disk encryption nor lvm on my machines16:19
zmomentAfter grub, how to drop to a initramfs shell?16:20
rrqmistype the second password ?16:20
zmoment20 mistyped passwords are not enough, wil have to reboot in a live system and chroot as before.16:23
rrqhsould work. the other option could have been to use the "e" command on the boot screen and then messed up the root pathname a little16:30
* rrq g'night16:31
zmomenthave a good night rrq!  Hope that life brings you good things!16:34
tempforeverI think I have a laptop with that setup (have to enter p/w twice) but don't recall having a problem with it (set it up under chimaera, I believe)16:53
tempforever1st screen is welcome to grub, enter passphrase for hd0 ...16:55
tempforeverthen get the devuan boot selection screen ... then please unlock disk sda1_crypt (2nd time for p/w)16:56
tempforeverafter that 2nd p/w it creates the /dev/mapper/lvm files16:56
tempforeverhm, one difference is this is legacy, not uefi boot though16:58
tempforeveractually if it boots to login screen then you're probably good to go, once you change user p/w so you can log in17:10
zmomentI'm following points 7 and 8 of https://www.dwarmstrong.org/fde-debian/, but lsinitramfs is not listing the keyfile that I added to the encrypted partition.17:24
tempforeverI'll check my setup, /etc/crypttab .. I dont remember setting up a keyfile18:21
tempforeveroh, that's to avoid entering the passphrase twice.  I didn't do that18:22
KuLuSzhello19:56
KuLuSzis there any developer of devuan ?19:57
KuLuSz:D19:57
KuLuSzor who can help of setup mesa rendering ?19:57
greenjeansThey are around, sometimes it takes a while19:58
greenjeansbest to ask your question, then just stay logged on and check for answers later19:58
KuLuSzyes as usualy ..19:59
KuLuSz:D19:59
KuLuSzty19:59
KuLuSzthis room is flood protected ?20:05
fsmithredyes20:05
KuLuSzoh20:05
fsmithred3 lines allowed, I think20:05
KuLuSzis not good20:05
KuLuSz:D20:05
fsmithreduse paste.debian.net20:05
fsmithredyou obviously haven't been here when we got badly flooded20:06
KuLuSznever ..20:06
KuLuSz:)20:06
fsmithredI also use termbin.com if I can't copy/paste20:07
debdogthough tha is not the only reason20:07
KuLuSzI will try to give a relatively understandable description of my situation.20:09
KuLuSzanyway not really devuan specific problem ..20:10
KuLuSzi get same "error" on antix too20:10
debdogin that case starting with hardware specs might be a good idea20:20
debdogesp. if we're talking about a laptop with an intel/nvidia combinatioen or such20:24
KuLuSzno-no20:25
KuLuSznetbook20:25
KuLuSzsingle card20:25
greenjeansAMD?20:25
KuLuSzintel20:26
greenjeansneed a model number at least to look up specs20:27
fsmithredlspci | nc termbin.com 999920:28
KuLuSziam not on that pc20:28
fsmithredassuming you can get to console and have network20:28
KuLuSz:(20:28
fsmithredwhat exactly is the problem? black screen?20:28
KuLuSzno problems with driver20:29
KuLuSzevrithing work ..20:29
KuLuSz*y20:29
KuLuSzhave pic20:29
KuLuSzbut20:29
KuLuSzwhen i want to watch youtube video , it very lagg20:29
KuLuSzand evry glxtest show i have rendering with mesa20:30
KuLuSzbut20:30
KuLuSzno20:30
fsmithredis it the same if you download the video first and then watch it in a vid player?20:30
KuLuSzrenederer is DRM20:30
KuLuSzi dont try it20:31
KuLuSzbut i use another sys there is work fine ..20:31
KuLuSzwithout laggs20:31
KuLuSzbut its older20:31
KuLuSzfrom 201720:31
KuLuSz:D20:31
_ds_I'm guessing related to video decoding acceleration.20:32
KuLuSzfirefox about:support show just sotware accelerate20:33
KuLuSznot hw20:33
KuLuSz_ds_: yes20:34
KuLuSzbut glx run in software rendering on CPU20:34
KuLuSzunder DRM20:34
KuLuSzso20:35
KuLuSzcpu 100% when play video20:35
KuLuSz:D20:35
_ds_$ apt-cache search vaapi; apt-cache search vdpau20:43
_ds_Some of the packages listed by those commands may be helpful.20:43
KuLuSz_netbookwork?20:56
KuLuSzwork20:56
KuLuSz:D20:56
ximon#linux21:03

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!