void-ppc / void-packages

The Void source packages collection (all ppc platforms, staging + main)
https://repo.voidlinux-ppc.org
Other
27 stars 12 forks source link

dracut: add a module to properly handle loading of Power Mac windfarm modules early in initramfs #21

Closed q66 closed 5 years ago

q66 commented 5 years ago

I wrote such hook and create a PR in Dracut upstream: https://github.com/dracutdevs/dracut/pull/610

This works great on my G5 PowerMac11,2, but could use wider testing. The easiest way is to create a 90ppcmac directory in your /usr/lib/dracut/modules.d and paste the two files from the PR in there, then rebuild your initramfs.

@pullmoll @stenstorp

pullmoll commented 5 years ago

I updated dracut here to install the two files into /usr/lib/dracut/modules.d/90ppcmac and all seems to work. I'm also going to test the new ISOs created with the patched dracut soon.

Oh, I also have a PowerMac11,2 and a PowerBook G4 which identifies as Powerbook3,3.

q66 commented 5 years ago

Yeah, I'm not expecting any problems with these. I'd still like to have this upstreamed though so I'm waiting for input from the dracut devs to see if there's something that needs to be changed for upstreaming, before patching it into our dracut package until a new release is made.

ernsteiswuerfel commented 5 years ago

Just tested pullmolls new ppc64 iso. Works like a charm now on my G5 7,3! It selectively loads windfarm_pm7,2 and necessary deps. Thanks!

pullmoll commented 5 years ago

@ernsteiswuerfel There's a bug left in the install script, though. You cannot install grub unless you change a line in /usr/bin/void-installer which has >$log to >$LOG. I'll create some new ISOs in the next days.

q66 commented 5 years ago

What do you mean? I fixed this problem ages ago in our void-mklive.

ernsteiswuerfel commented 5 years ago

@ernsteiswuerfel There's a bug left in the install script, though. You cannot install grub unless you change a line in /usr/bin/void-installer which has >$log to >$LOG. I'll create some new ISOs in the next days.

I did only boot the .iso to test if the windfarm module gets loaded now automatically. I didn't try to install (did this with an earlier iso).

pullmoll commented 5 years ago

@q66 sure, but I hadn't updated my copy of void-mklive on the G5 where I built the ISOs. My fault. D'OH!

q66 commented 5 years ago

waiting for upstream to do a review has proven to be a futile effort so speeding this up https://github.com/void-linux/void-packages/pull/14092