libera/#devuan/ Thursday, 2018-09-13

drwhitehi folks, I have an issue with the dependancies for the repos.09:02
drwhiteI try to install something, and it goes to install it ut something that it installs with it requires what I'm trying to install as a dependancy09:03
ocinhi, there seems to be a problem with eudev and the persistent network interfaces file. http://dev1galaxy.org/viewtopic.php?id=2333 is about one part of it (maked as solved but actually it's not officially solved). additionaly after trying this and modiying the network rules file in /etc/udev/rules.d, it seems to be fail on the next boot because it fails to rename the devices because they already exist :( any10:39
ocinhints?10:39
scraihtrename to other names worked here10:43
scraiht*different10:44
ocinI remember that it notmally would rename existing interfaces to ethX.rename or something so that it does not conflict, but it does not seem to do this step10:55
scraihtit? you mean /etc/udev/rules.d/70-persistent-net.rules ?10:58
scraihtafter having problems with eth0/eth1 renaming I changed the names to net0 and lan0 and had no more problems10:59
scraihtin /etc/udev/rules.d/70-persistent-net.rules that is11:00
ocinit being udev on boot after reading the 70-persistent-net.rules11:00
scraihtyes11:00
ocinudev itself fails to rename the devices to the ones I specified in the 70-persistent-net.rules11:01
ocinwell I see you use a completely a different naming, this would work11:03
ocinthough udev should be smart enough to rename existing interfaces to some temporary name to avoid existing devices11:03
ocinat least thats how it works on other distros11:03
scraihtwell iirc in my case udev used to do that or at least try11:07
scraihtthe kernel named the nics just the other way around11:08
scraihtwhen udev tried to rename eth1 (what's now net0) to eth0 (what it used to be) it was already there and then named eth211:09
ocincan anyone file a bug about the missing udev-finish? http://dev1galaxy.org/viewtopic.php?id=233311:15
ocinI guess I go with custom names for the interfaces lan0 wan0 etc. to workaround all this broken stuff11:16
KatolaZocin: please send a bugreport11:17
KatolaZto bugs.devuan.org11:17
errandir_udev seems to think that renaming a device is atomic when it comes to the kernel, but this is not true. Renaming the device itself is, but all the related stuff (debugfs, sysfs, etc) is not.11:27
scraihtocin: you're right. udev wasn't smart enough to rename eth2 to eth0, in my case. just checked old logs11:32
scraihtthat's why I choose interface names which do not collide with names given by the kernel in the first place11:34
ocinhmm. the problem I have is that I actually can't rename the interfaces. they should be predictable from the first boot. just tried net.ifnames=111:47
ocinnow they are fixed but, uh, predictable? getting weird names11:48
ocin2 port nic in one pci slot: port 1: ens5f0 port 2: ens5f1d111:50
* ocin scratches head11:50
scraihtthese come from udev, no? what do you want to achieve11:51
ocinyea they come from udev, it's probably predicatable but very messy11:53
ocinI've read about biosdevname but that does not seem to exist for devuan/debian11:53
ocinscraiht: basically I want predictable names that also make sense without having to rename interfaces11:54
djphocin: I just use a udev rule that says "this one's always eth0" or some such11:54
scraihti think thats not possible. kernel given interface names are not predictable for sure11:58
djphscraiht: is too, hang on ...11:59
scraihtso you only have the choice to rename them predictably with udev rules. CMIIW12:00
ocinI have a custom made devuan image which I need to roll out on 1k+ machines with 4-6 network ports and 2 different hw categories12:00
ocinso I need something predictable, best without having to rename stuff through a 70-persistent-net.rules12:01
ocinas the same HW is used net.ifnames=1 seems to be working but the nameing kinda sucks (but it would work)12:01
djphah...12:02
scraihtuh. ok. that is a different league..12:03
ocindells biosdevname does seem to create more sane interface names but it seems it's not ported to debian12:04
scraihtI only know on my machine the kernel does not name  the 2 nics (one PCI, one on board) consistently12:04
ocinubuntu seems to use it tho12:04
ocinscraiht: I think with the net.ifnames=1 kernel parameter it would12:04
scraihtok. havent tried that12:05
scraihtI remember to have read that the kernel naming of nics is under race condition... sry no reference12:07
ocinwith the default ethX naming scheme yes12:10
ocinI'll roll a deb for biosdevname and see how that works out12:28
errandir_ens5f0 is PCI function 0 in slot 5. Cannot remember the 'd1' thing exactly, I think it should not be there.12:32
ocind is the device port, weirdly it's only there when the pci function is 1 and not 012:34
ocinyay, biosdevname works like a charm, now it's em1 & em2 for the onboard ports and p4p1, p4p2, p5p1, p5p2 for the two 2-port pcie nics14:43
ocinand I don't need to touch the initscript14:43
fsmithredocin, what happens if you just remove 70-persistent-net.rules?14:48
fsmithredyou have six nics?14:48
ocinit will then use unpredictable names (ethX) and race condition so its a lottery which nic is eth3 for example after every reboot14:49
fsmithredyeah, I can see how that would be a mess14:50
ocinthe fix for this is kernel parameter net.ifnames=1 so you get predictable names but I didn't like them because they are too confusing14:51
ocinnow I made a deb for biosdevicename, set kernel parameter biosdevicename=1 and it's predictable and the names make more sense14:52
ocinall without any 70-persistent-net.rules14:52
fsmithredpredictable != memorable14:53
fsmithredcool. Any idea why it's not in debian repos?14:53
ocinand I don't need to care about the 2 bugs in devuans eudev it not writing the rules at all and it being unable to rename them if the rules exist and you just change the ethX numbers)14:54
ocinnot sure, it seems biodsevname is the default for ubuntu too14:54
ocinp5p2 is way more logical then ens5f1d114:55
errandir_will you try to get the deb for biosdevicename into devuan, so wel all can benefit from this?14:59
fsmithredyeah, if someone wants to maintain it, it could get into devuan14:59
fsmithredI especially like the names given to usb wireless dongles - wlx<mac-address>15:00
fsmithredpackaging info for devuan: https://dev1galaxy.org/viewtopic.php?id=54915:03
ocinwell at some point maybe15:22
ocinI've put it here for now: https://github.com/incognico/devuan-biosdevname15:22
fsmithredgreat, thanks!15:23
ocinif you want to test just use biosdevname_0.7.2-1_amd64.deb15:23
fsmithreddid you have to create your own debian dir, or did you get it from ubuntu or somewhere else?15:24
ocinpretty much took most from ubuntu15:24
fsmithredsomeone here argues for a postrm script to run update-initramfs - https://stackoverflow.com/questions/27112436/how-does-biosdevname-really-work15:27
ocinif you wanna test: install deb, remove persistent net rules if you use those and add the biosdevname=1 kernel parameter15:28
sxpertI have an issue with uwsgi15:34
sxpertmy setup starts when I launch from the command line, but not from the init script15:34
fsmithredocin, it's not working for me. Do I need to make a udev rule?15:54
ocinit installs the 71-* rule under /lib/udev/rules.d15:59
ocinyou can test if it works in general by using biosdevname <some interface>16:00
ocinit then should return it's new name16:00
fsmithredreturns nothing16:02
fsmithredmaybe because I'm doing this inside virtualbox?16:04
ocinthats very possible16:04
ocinit takes the infos from the bios (see readme of biosdevname itself), not sure how that works out with a virtualized environment/bios16:05
fsmithredyeah, that's what I was thinking. It's not a real bios.16:05
ocinI can also image it returning nothing due to (para)virtualized network drivers16:06
ocinfsmithred: I've added the postrm thing17:05
fsmithredocin, the postrm script works. But I'm not seeing a change with or without biosdevname=1 in the boot command. Running the command 'biosdevname -i wlan0' does return p1p1, but ip and ifconfig still show wlan0.18:08
fsmithredafk18:08
nemohm19:02
nemoevery time I try to install vlc on my SO's upgraded-to-ascii laptop, it says I have dependency problems19:03
nemolooks like there's an "ascii-security" version19:03
nemoif I force-version to stable it succeeds19:04
nemoanyone happen to know what's going on here?19:04
nemo(that is, the 3.0.2 stable one is fine, the 3.0.3 ascii-security one conflicts with basically all the other vlc packages)19:04
KatolaZnemo: which repos are you using?19:05
KatolaZ(I guess it's *.mirror.devuan.org)19:06
nemohttp://auto.mirror.devuan.org/merged/ and http://download.virtualbox.org/virtualbox/debian/ stretch - although the vbox one should not be involved here19:07
KatolaZnemo: have you ever read the ascii release notes?19:07
KatolaZyou should use deb.devuan.org19:08
nemook.19:08
KatolaZstarting with ascii, *.mirror.devuan.org and packages.devuan.org are deprecated19:08
nemoKatolaZ: TBH I don't even remember upgrading this one to ascii19:08
nemoalright19:08
KatolaZthey are still there only for jessie19:08
KatolaZand will be decommissioned19:08
nemoI do remember discussing it here beforehand, maybe I tentatively just tried renaming all the jessie's to asciis 'cause folks that that would be fine ☺19:08
KatolaZ:)19:09
KatolaZnp19:09
nemosince I'm here... is there a non-ESR firefox in the repo?19:10
nemoguess I'll check synaptic once the updates are complete19:10
KatolaZpkginfo.devuan.org19:10
KatolaZnemo: ^^^19:11
nemohm. that reminds me. gotta check to see if wifi and touchpad work in ascii now19:11
nemolooks like "no"19:11
nemowifi seems to be fixed19:13
nemohm https://launchpad.net/~hanipouspilot/+archive/ubuntu/ppa  supposedly fixes the touchpad19:17
nemowish I knew if it was safe to install19:17
KatolaZnemo: just look at the code19:18
nemonothing obvious19:20
nemoalthough this *is* a lot to review19:20
nemobut I guess someone being tricksy wouldn't put in anything greppable ☺19:21
nemoat least someone trusted them enough to assign them bugs...19:22
bkeysCan someone tell me how I am supposed to resize the partitions on a devuan ARM image?19:31
bkeysvega respect octopus19:31
bkeyshttps://github.com/nikolas-n/GNU-Linux-on-Asus-C201-Chromebook19:31
bkeysI'm using the image listed here19:31
bkeysEverytime I try to do it through gparted it just borks the install19:31
FatPhilthere were some instructions on the Raspian installation docs that did just that19:38
MrrtRaspian has its own util for that, raspi-config19:40
MrrtI used this resize.sh setting up ubuntu server on an ordoid xu4 https://hastebin.com/bazutijivo.bash19:44
KatolaZMrrt: you should be careful at deleting the right partition there19:48
KatolaZIIRC some ARM images have only one partition, while some other have two partitions19:48
KatolaZparazyd: ^^^19:48
parazydDepends of whether it's GPT or DOS partitioned. Most of them are DOS, with the exception of Chromebooks IIRC.19:49
KatolaZit's actually much easier to follow the steps of that script manually19:49
parazyds,of,on,19:49
KatolaZbasically, delete the partition you want to resize19:49
KatolaZrecreate it at the same staring point, only larger19:50
KatolaZsave the changes19:50
KatolaZreboot19:50
KatolaZand then resize2fs after reboot19:50
parazydKatolaZ: You don't have to reboot for ext4.19:51
parazydIt can even resize a partition in use.19:51
KatolaZyeah I know19:53
KatolaZjust didn't know they were all ext419:53
KatolaZ:)19:53
nemotouchpad still fails. oh well. looks like 4.13 kernel might solve19:56
KatolaZnemo: 4.17 is in ascii-backports atm19:56
nemooh? cool!19:56
KatolaZnemo: pkginfo.devuan.org :)19:57
nemowell... I kinda thought with ascii-backports enabled I'd be recommended the latest kernel19:57
nemohm. guess I'll remove that other thingy I tried19:59
KatolaZnemo: ascii-backports has a lower priority than ascii20:01
KatolaZand will never automatically override something coming  from ascii20:02
KatolaZotherwise you'll easily fuck your system up with automatic upgrades20:02
nemointeresting.  I kinda assumed backports had that exact "fuck up" risk as implicit20:03
nemobut good to know20:03
nemocould explain why so many debian players complain about never finding anyone on the hedgewars server20:04
nemoguess they never get the 0.9.24 (current hedgewars release) update20:04
nemoI thought backports enabled would be sufficient20:04
KatolaZsufficient for what?20:05
nemofor them to automatically get the game updates20:05
KatolaZnemo: no automagic is a good substitute for a human brain :)20:07
nemoyeaaah but most of the players are kids20:09
nemoalso wish debian had a bit more nuance20:09
nemokernel makes total sense20:09
nemogames... eh20:09
nemobasically any version of hedgewars that isn't the latest, you aren't going to have much fun since it's deterministic lockstep and protocol almost inevitably gets bumped20:09
nemosometimes several times20:09
KatolaZkids should use toys, not tools20:10
KatolaZ:)20:10
nemoheh. WAG they were not the ones who put debian on their machine20:11
nemobut we have same issue w/ ubuntu20:11
nemowhich probably is closer to toy category - or at least is intended to be20:11
bkeysparazyd: So can I do the resize from within the devuan installation?20:12
KatolaZbkeys: sure you can20:12
bkeysHow do I do that?20:13
bkeysPretty sure parted will fuck me20:13
KatolaZbkeys: ever used fdisk?20:14
bkeysYes20:14
KatolaZfdisk DEVICE20:16
KatolaZ(as root)20:16
KatolaZbkeys: get the list of partitions (p)20:18
bkeysMmhm20:18
bkeysKatolaZ: What next?20:22
KatolaZhow many partitions do you have? <- bkeys20:23
bkeys220:23
KatolaZ(how many do you see after giving 'p'?)20:23
KatolaZok20:23
KatolaZwhich one you would like to resize?20:24
bkeysThe second one20:24
KatolaZbkeys: you must check that the second one is indeed physically placed after the first one20:25
KatolaZ(start-end block)20:25
bkeysIt is physically after the first one20:25
KatolaZok20:25
KatolaZ(I assume you have more space on the SD-card)20:26
bkeysYes20:26
KatolaZthen delete it20:26
KatolaZ'd'20:26
KatolaZ'2'20:26
KatolaZ'p'20:26
KatolaZ(and after that you should see only the first one)20:26
bkeysYep I only see the first one20:26
KatolaZthen re-create the second partition20:27
KatolaZ'n'20:27
KatolaZbe careful to use exactly the same starting block as the old one20:27
KatolaZ(it should be the default one)20:27
bkeysDoes -1 count as the endling block?20:27
KatolaZit should propose you the maximum size as default20:28
bkeysIt proposed like 1.7 gigs20:28
bkeysIt should be more like 6020:28
bkeysIt seems like it's limiting itself to the size of the current live partition, instead of the actual size of the disk20:30
KatolaZbut is it a GPT or a DOS partition table?20:30
bkeysGPT20:30
KatolaZok then you must quit now20:30
KatolaZwithout saving20:30
KatolaZq20:30
KatolaZotherwise you will fuck everything up20:30
KatolaZand use gdisk instead20:31
KatolaZsame commands under gdisk20:33
KatolaZbut it should be able to see the full device20:33
nemodamn. still doesn't work w/ 4.17 kernel - and this package uses older kernel setup so clearly wasn't intended for it. bleh.  what the heck is going on20:34
bkeysKatolaZ: Same thing, delete old partition and make new one?20:34
KatolaZyep20:34
KatolaZbkeys: you should have seen the total size of the device printed by gdisk when you launched it20:35
bkeysIt doesn't print the size, but it has the same issue as fdisk20:36
bkeysI wonder if it would stop doing this if I just turned it off and put it in another device that it wasn't live20:36
KatolaZbkeys: just try to specify a large number20:37
KatolaZlike 20GB20:37
KatolaZbkeys: you can definitely do the same by plugging the device on another system20:39
KatolaZit shouldn't make any difference though20:39
bkeysYeah I did plug it in, and it made no difference20:39
gnarfaceascii should still be fine with kernel 4.1 if i'm running headless, right?20:42
nemohttps://askubuntu.com/questions/1049787/lenovo-ideapad-330-touchpad-not-working  whooo boy. this is going to be a bit of work20:42
KatolaZbkeys: then you must consider the possibility that the sd-card is not as large as advertised20:42
nemoguess I'll leave it alone for no20:42
nemo*w20:42
bkeysKatolaZ: I know for a fact that it is20:43
KatolaZok20:43
KatolaZbkeys: if you are willing to risk to fuck the system up again, you can try to redefine the shape20:43
KatolaZin gdisk expert mode20:43
KatolaZ(sorry, I meant redefine the geometry)20:44
bkeysWell the weird thing is gdisk is telling me it's the right size20:44
bkeysDisk /dev/mmcblk1: 125829120 sectors, 60.0 GiB20:44
KatolaZmmmhhh20:45
KatolaZso it sees it all20:45
KatolaZare you sure that there is no other partition after the second one?20:45
bkeysYes20:46
KatolaZhave you tried putting a large number as the new partition size?20:46
KatolaZlike 20G20:46
bkeysIt just ignores it and spits out another prompt20:47
bkeysLast sector (40960-3543006, default = 3543006) or {+-}size{KMGTP}: 20G20:47
bkeysLast sector (40960-3543006, default = 3543006) or {+-}size{KMGTP}:20:47
KatolaZput the default20:48
nemough acpidump doesn't show "ELAN" anything - so... this laptop isn't even displaying it?20:48
bkeysThe default will come out as 1.7 gigs20:48
KatolaZyep20:48
bkeysAlright20:49
KatolaZcan you please post the screen you see after inserting "p"?20:49
bkeysNumber  Start (sector)    End (sector)  Size       Code  Name20:50
bkeys   1            8192           40959   16.0 MiB    7F00  kernel20:50
bkeys   2           40960         3543006   1.7 GiB     8300  Linux filesystem20:50
KatolaZbkeys: which image are you using?20:50
bkeyshttps://mirror.leaseweb.com/devuan/devuan_jessie/embedded/devuan_jessie_1.0.0_armhf_chromeveyron.img.xz20:51
bkeysThis one20:51
KatolaZhold on20:51
nemohttps://bugzilla.kernel.org/show_bug.cgi?id=196985  perfect!20:52
nemohm odd. "20:52
nemoThis issue is resolved on my laptop as of kernel 4.14-rc7."20:52
KatolaZbkeys: downloading it now20:52
nemo'[    0.922912] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp'  - I get same message. neat. let's try that option20:53
bkeyshttps://github.com/nikolas-n/GNU-Linux-on-Asus-C201-Chromebook/issues/120:57
bkeysKatolaZ: This might be relevant20:57
nemo# CONFIG_PINCTRL_AMD is not set20:59
nemo☹ ☹20:59
nemowelllllp I'm boned20:59
nemounless I build a custom kernel20:59
nemoand. gotta say, that's a lot more fun to do on gentoo than debian ☺20:59
nemohttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876141 hah21:00
nemoguess I'll add my voice to the bug21:01
KatolaZparazyd: it seems that the protective MBR is sized at 1.7GB21:01
KatolaZbkeys: I have it21:05
KatolaZbkeys: are you still here?21:05
bkeysYep21:05
KatolaZso21:05
KatolaZin gdisk21:05
KatolaZgdisk /dev/WHATEVER21:06
bkeysI'm there21:06
KatolaZx21:06
KatolaZ(expert mode)21:06
KatolaZ...21:06
* bkeys nods21:06
KatolaZnow21:06
KatolaZ'e'21:06
KatolaZ(relocate backup data structures to the end of the disk)21:07
KatolaZ...21:07
bkeysAlright21:07
KatolaZnow21:07
KatolaZ'm'21:07
KatolaZ(return to main menu)21:07
KatolaZ...21:07
bkeysAlright21:08
KatolaZnow 'p' should tell you that the last usable sector is much larger than before21:08
bkeysThat fixed it21:09
KatolaZnow21:09
KatolaZ'd'21:09
KatolaZ'2'21:09
KatolaZthen21:09
KatolaZ'n'21:09
KatolaZetcetera21:09
KatolaZwhen you are done, just 'w'21:09
KatolaZand then you need resize2fs21:09
KatolaZand you should be set21:10
bkeysjust resize2fs <DEVICE>21:10
bkeys?21:10
bkeysErr21:10
bkeysresize2fs <DEVICE>p221:11
KatolaZyep21:12
bkeysSurprisingly enough it boots and I didn't fuck it up21:13
KatolaZgood21:13
nemoso. just wondering. I sent a replay to that debian bug - but do you guys, by any chance, do your own kernel builds?21:14
nemoif so, could I request that CONFIG_PINCTRL_AMD=y be enabled?21:14
nemofor that ascii-backports kernel?21:15
jellyso a user in #debian wants to migrate from devuan jessie back to debian, does that sound feasible?21:29
golinuxjelly: Inquiring minds would like to know why?21:33
DocScrutinizer05>>[2018-09-12 02:49:37] <g4570n> https://lincolnloop.com/blog/saying-goodbye-botbotme/<< to me that seems like a panic mode reaction to GDPR, based on a lack of insight into the real requirements that result from it21:59
DocScrutinizer05chanlogs are announced in /topic (this always been mandatory in best sense of what GDPR tried to implement now on a wider basis). There's no further issue with chanlogs, no requirements to allow individual users to opt out or whatever. No reason to shut down botbot22:02
KatolaZbkeys: did it work?22:04
bkeysYes, thank you22:04
KatolaZgood22:04
KatolaZyw22:04
DocScrutinizer05worst: this panic-driven approach is contagious22:14
silverwillowhey all - what's the devuan way for building a more recent linux kernel than 4.9 in ASCII? can i just get a kernel tarball and do a menuconfig?23:40
AirstrikeGooglesilverwillow: gzcat /proc/config.gz > /usr/src/linux/.config; make oldconfig23:41
AirstrikeGoogleperhaps23:41
Menelkiror using a repo that you can trust23:42
Menelkirreally trust, lol23:42
DocScrutinizer05default answer: same like debian23:45
AirstrikeGoogleDocScrutinizer05: good point23:45
Menelkiryeah probably there's no issues about kernel, even funtoo use debian-sources by default and works23:46
silverwillowok will RTFM wrt. how it's done in debian - thanks.23:47
KatolaZsilverwillow: you have 4.17 in ascii-backports, if you don't want to build your own23:52
silverwillowoh - excellent - that will do :)23:53

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