libera/#devuan/ Friday, 2023-09-15

grizzlybearim having tons of trouble installing devuan 5.0 to a raid1 mdadm partition as a boot device spanned across two 1tb wd blue ssd drives, sata.04:11
grizzlybeargrub didn't recognize the btrfs partition and failed to boot on one attempt.04:11
grizzlybearsecond attempt with the / partition formatted as ext4 gives me a grub error of "error: file '/boot/grub/i386-pc/normal.mod' not found."04:12
grizzlybearany hints? thinking of going back to hdd raid1 and/or using another os04:12
gnarfacegrizzlybear: do you have the package "grub-pc-bin" ...?04:18
gnarfaceor i guess just check for grub-pc04:18
gnarfacenot sure this is an issue specific to raid04:19
rwpI always use a separate /boot formatted as ext2, ext3, or ext4 which grub knows how to boot.  AFAIK grub does not know how to boot from btrfs file system.  I might be wrong there though.04:22
rwpUsing btrfs as a single device works best.  Which is why I presume you are using mdadm to create a RAID1 to host a single btrfs partition?  I guess so.04:23
rwpI guess I do use grub to boot /boot on native XFS.  (me looks sheepish)  So that does work too.04:24
gnarfaceyou might just have to add some line to the grub config to load a btrfs module, i don't know04:25
gnarfacei do know it was generally recommended not to make /boot part of the raid, but i thought there was a way to do it both ways04:25
rwpI have always put /boot on an /dev/md0 mdadm RAID1.  Works great.  FTW!04:26
rwpI agree though that you might just be needing to explicitly load the btrfs module.04:27
gnarfacegrizzlybear: if you actually check, do you see that file present on the disk?04:28
gnarfacegrizzlybear: also, i assumed you have btrfs-progs installed but make sure04:29
rwpAlso not having /boot/grub/i386-pc/normal.mod installed makes me think something failed during the setup.  That should be there.04:30
DelTomix^ could also be the location is changed when things are assembled - or - the partition/drive that grub was installed to doesn't see it at boot time04:31
rrqI guess you're talking about a device module for the boot loader? that boot loader must understand the filesystem it loads the kernel from04:32
gnarfaceyea i thought grub had... modules, or something04:32
gnarfacebut also, grub packages going missing during install for certain systems has not been unprecedented04:33
rwpIn my poking around here I think grub-pc-bin.postinst should have installed the /boot/grub/i386-pc/* files and if they did not get installed then something there failed.  Pretty sure.04:33
gnarfacethere's a copy in grub-pc-bin at /usr/lib/grub/i386-pc/normal.mod, so i'm assuming what failed was grub-pc04:34
rwpThat should all get installed automatically when grub-pc-bin is installed though.04:36
rwpSince setting up mdadm raid1 in the installer is rather tedious I might assume that a mistake was made in the process somewhere.04:37
rwpI often set up partitions and mdadm raid outside the installer and then boot the installer and attach to the already set up raid partitions.  It's easier.04:37
rrqthere need to be a grub partition accessible by the boot loader prior to sofware raiding04:38
rwpmdadm raid is brought online in the initramfs04:39
rrqright; that's after loading the kernel and initramfs04:39
rrqso there needs to be a prior "fielsystem" for the boot loader04:40
rrqI'm afraid grub has changed a bit recently and all my knowledge is old, possibly outdated04:41
rwpThe grub package abuses the debconf database as a registry too.  It records the device used to store the boot loader.04:41
rwpWhich it uses at upgrade time to refresh the boot loader.  Which might have changed over time in a system if disks were replaced or whatever.04:42
rwpI like how the OP threw that question in here and has been busy offline apparently and we are just happily going down various rabbit holes of thought.04:42
grizzlybearawesome my technique of going to go take a shower while somebody replies to my comment works like a charm04:55
grizzlybearthanks!04:55
grizzlybearinteresting so i might have some failures in setup04:58
grizzlybearfailures to copy files04:58
grizzlybeari guess burning the iso to usb isn't such a great idea after all04:58
grizzlybearwill try an optical storage medium....04:59
rwpThe installer can be copied to a USB storage okay.  That's what everyone does these days.  No need to make it an actual dvd/cdrom.05:06
rwpThe installer booted and the installer ran so you know that part was working.05:09
grizzlybearlets rule it out anyway06:19
grizzlybearhuh growisofs is missing from the latest ubuntu desktop AND k3b cannot detect my optical drive... grr06:44
grizzlybearwill try it your way rwp, using a usb flash drive again but a different one.06:55
grizzlybeari give up07:14
grizzlybear"unable to install grub in dummy"07:14
gnarfacewhy dummy?07:14
grizzlybeardunno why it chose dummy07:14
gnarfacechoose something else07:14
grizzlybeari'm a dummy though07:14
grizzlybearmaybe its calling me a dummy07:14
grizzlybeari cannot choose something else?07:15
grizzlybearits guided partitioning07:15
gnarfacei never touched that, i always use manual07:15
grizzlybearyeah even manual fails07:15
grizzlybeari've tried that07:15
grizzlybearwill try it again though07:16
gnarfacei think you need to do it a specific way07:16
grizzlybearwell yeah thats why im here to learn the specific way07:16
gnarfacei just remember something about needing LVM or needing to do it by hand07:17
grizzlybearok07:17
gnarfacesomeone around here does know07:17
gnarfaceif you try it again make sure you're in expert mode, just because i'm not sure if that matters too or not07:18
gnarfacewhich image did you use?07:18
grizzlybearserver amd 6407:18
gnarfacespecifically, which link did you download it from i mean07:18
grizzlybeargeez it was a while ago now07:19
grizzlybeardevuan_daedalus_5.0.0_amd64_server.iso07:19
gnarfacealright07:19
gnarfacewell 5.0.1 is up there now07:20
gnarfacenot sure if that will help though07:20
gnarfacei do know people trip up with the RAID setup a lot, it's not obvious how to make it work right07:20
grizzlybearroger thanks07:20
gnarfaceit is possible it might be easier to just do the install to one disk normally then setup mdadm afterwards, but i haven't messed with software raid in years, i couldn't tell you specifics07:21
grizzlybeari'm sure it would be easier actually07:51
grizzlybearfaster too. installing the base system now and its going really slow07:51
grizzlybearfor some reason07:51
grizzlybearpossibly because the raid1 is syncing dunno07:52
grizzlybearor its downloading packages07:52
grizzlybearnope that didnt work either. ended up going with a single drive typical installation and i'll do a btrfs conversion and setup mdadm08:46
grizzlybearpost install08:46
grizzlybearthanks for your help anyway guys08:46
gnarfacehmm, that raid thing keeps coming up, that's not a new issue with daedalus, but there's a way to do it...10:40
gnarfacei think it just needs LVM maybe10:41
rrqgrizzlybear: do you have UEFI or legacy bios?10:51
ragnarov_unidentHi15:58
debdogahoy!16:00
ragnarov_unidentsorry, I  am a bit of a compromised position rn16:02
ragnarov_unidentnew setup, haven't got everything running, shouldn't have pinged so fast16:02
ragnarov_unidentWhen I switch tty the tty containing Xorg freezes16:03
ragnarov_unidentI can't get back to it16:03
ragnarov_unidentI am starting Xorg from startx16:03
ragnarov_unidentthe all other ttys work16:04
debdogragnarov_unident: yes, known issue, solutin is on the way16:04
debdogyou can try with some packages from excalubur, gimme a minute16:04
debdog<rrq> CALL FOR TESTERS: if you run startx as non-root, using daedalus and ceres, you are invited to test the devuan/experimental build and send feedback to LeePen or rrq .. it's a version that is happy about VT switching (supported by either seatd or elogind), but we want more confirming tests.16:05
debdogxserver-xorg-core and (dependecncy) xserver-xorg-common16:05
debdogwith seource.list line added, it'd be: apt-get install -t experimental xserver-xorg-core16:05
debdogthe sources.list line is: deb http://deb.devuan.org/devuan experimental main16:05
ragnarov_unidentaight16:07
ragnarov_unidentdebdog apt says xserver-xorg-common is already at the newest version16:20
ragnarov_unidentbrb16:36
debdogragnarov_unident: sorry, I was just relying that message and that is all I know16:43
ragnarov_unidentwai16:43
ragnarov_unidentrealy it agian16:43
ragnarov_unidentI lost it, I am not registered, so I lot it16:44
ragnarov_unidentdebdog ^16:44
debdogragnarov_unident: the channel is looged, see topic16:46
debdog*logged16:46
ragnarov_unidentthanks16:48
ragnarovguys the fix did not work for me17:32
ragnarovIt freezes mouse & keyboard17:32
debdogrrq ^17:36
debdogragnarov: out of curiousity, what GPU and driver?17:37
ragnarovintel17:37
debdogok17:37
ragnarovI have not configured GPU, it has and and radeon one17:37
debdogok, just plain intel17:38
ragnarovAye17:38
debdogoh, another question arises, ragnarov, is it fresh daedalus install or upgraded from previous version/s?17:39
ragnarovupgraded17:40
debdoginteresting17:40
ragnarovPrev one was 3 months old, I am new to Debian/devuan17:40
debdogneed to test that here, thanks17:40
debdogI have some really odd issues with upgraded versions here as well. everything seems fine so far with a fresh install17:42
systemdleteSo I wrote a drop-in replacement script for os-prober.  I find that if I place os-prober in /usr/local/sbin/, update-grub will find it and use it instead of its own. My script COMPLETELY IGNORES REMOVABLE DRIVES!  So no thumbdrive trickery, which I think was one of the issues with os-prober security.  (of course there could be other trickery, like removable SATA drives, but maybe that's not so20:34
systemdleteterrible, idk).20:34
systemdleteAnyway, my script is working, and I've testing it on all 3 of my hosts, which contain a variety of multiboot configurations.20:34
systemdleteI will post it here and if you see problems with it, let me know and I will see if I can easily modify it.20:35
systemdleteI've tried to be generous with comments in the script, and it also has a trace option.   (no man page yet, sorry...)20:35
* phogg awaits eagerly20:37
systemdletehttps://paste.debian.net/1292056/20:38
* systemdlete likes phogg's comment...20:39
systemdleteThere may be simpler ways to do this, but this one is working, so I went with it.20:40
systemdletethanks to all for /constructive/ feedback20:41
phoggsystemdlete: I can provide some feedback on sh things if you like20:46
systemdleteas you wish20:46
systemdlete(hit me!)20:47
phoggI'll do it in the form of a paste in a minute20:47
* debdog hits systemdlete with a wet trout wrapped in a frozen towel SCNR20:48
* systemdlete thanks debdog for that; they needed it20:48
systemdleteone thing I will say upfront:  I don't care for K&R style coding.  So no run-on "if [ x = y ] ; then" in my scripts.  I find that harder to read later on.20:51
phoggI won't comment on style20:51
systemdletejust a preference I developed early on20:51
phoggwe all have our preferences, mine are just as bad as anyone else's20:51
systemdletephogg, are you re-writing my whole script?  LOL20:51
phoggno20:52
systemdlete(some people will do that sort of thing)20:52
phoggI do that sort of thing, but I am just doing a couple things in this case.20:52
systemdleteI have added some comments since I posted that20:52
systemdleteare your changes portability/compatibility issues, or did I miss some cases?20:55
* systemdlete is curious20:55
phoggjust some little efficiency things and a bit of correctness20:56
phoggmost of the time is making sure I understand what you're doing20:56
systemdleteYeah, I didn't go into much philosophy or strategy discussion there.20:56
systemdleteI just want to re-iterate:  I did not change anything else besides the ONE os-prober script.  So I didn't modify any of the scripts that the testing portion calls, e.g.20:58
systemdleteThere may be issues with those, such as for Hyperbola (which takes a long time sometimes) test20:58
phoggsystemdlete: https://termbin.com/7csp lots more I would do differently, but here are my suggestions.20:58
systemdleteOK, thanks.  Generally, I find the IFS= business makes the code more difficult, if maybe more efficient, as you point out.21:00
phoggI figured two subprocesses was a bit too much21:01
systemdleteI'm ok with a little inefficiency if it makes code easier to maintain21:01
phoggyou could also do something similar to avoid using ls in two more places, but one of them is "is dir empty?" which is very hard21:01
systemdleteand I know the error handling on umount is lacking... I was getting around to that.21:01
systemdletephogg, have you tried this script?21:02
phoggdid not test at all21:02
phoggdidn't even shellcheck it... probably should do that anyway21:02
systemdleteI'm hoping someone will try it on a multi-boot system21:03
systemdleteGet some more data points for the outcome of the operation21:03
phoggshellcheck found a couple things and I noticed a couple more: https://termbin.com/xh8721:03
systemdleteit can be run standalone, and all it will do is generate the entries for update-grub21:04
phoggI haven't got a multi-boot system right now, but I was thinking about grabbing an old box and throwing gentoo on it in the next week. I could maybe try it there after that.21:04
systemdletethanks, then you will let me know21:05
systemdletemostly, I am concerned with the security issues that have put os-prober in the klink21:05
phoggwhen I've tried it I'll report back one way or the other21:05
systemdletethat's why I avoided removable drives.21:06
systemdletebut I am not sure about all of the issues that made it a baddy21:06
systemdleteAnd I'm not claiming I will solve all of those21:06
phoggAre there open bugs for them?21:07
systemdleteyou know, I actually visited the gnu site where they have the bug list, but from what I can tell, it seems that little to nothing has moved much for grub, generally, over the past few years.21:08
phoggtwo reasons for that: it's "done", and we are in the EFI era where people question the need for a bootloader at all21:08
systemdleteEFI is sort of a bootloader itself, I thought21:09
phoggnot entirely, but it solves some of the same problems grub solves21:09
phoggI say throw out EFI and convince the industry to standardize on coreboot and grub instead. The world would be a better place.21:09
systemdleteaside from hobbyists, I wonder how much demand there is for multi-boot systems21:10
systemdleteI like the concept of EFI, but it seems to have gotten snagged in implementation more than design.  Istr a lot of bugs and security issues early on.21:10
phoggprobably zero, but there is a demand for purpose-built systems where you have control all the way down to the metal21:11
phoggEFi smacks of committee design, but anything further on this should probably move to #devuan-offtopic21:11
systemdleteagreed21:12

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