pkg and pkg-static

If you upgrade DragonFly and one of the shared libraries used by pkg gets updated, you can’t run pkg until you get files, but pkg is the program you use to bring in new files.  This chicken-and-egg problem is solved with pkg-static, a version of pkg built without shared libraries.

You may have noticed some format flip-flopping between pkg and pkg-static if you had to run it after the most recent DragonFly upgrade; that is fixed.  There’s a larger issue of certificate installation identified there; I don’t know a solution to it, but I do want to mention this for next time pkg breaks for someone – pkg-static will work as backup, including to bring in a new version of pkg.

Disk encryption and non-QWERTY keyboard layouts

When you encrypt your DragonFly boot drive, initrd(7) is run to get your system online and able to accept a password to decrypt the drive.  So far, so good.  The initrd program is a minimal userland designed to be small, and it generally works.  However, it assumes a QWERTY keyboard.  If you’re Pierre-Alain TORET and normally use an AZERTY (in this case French) keyboard, that makes it difficult to type the decryption phrase.

It’s possible to patch a different keyboard layout into initrd, and he has documented just how to do that.

A new upgrade method

Remember my post about a new upgrade script?  tse, the author, has happily added in a bunch of suggestions.  I’m intermittently traveling and can’t do anything to test it for days yet – but I’d love to see others try it out.

The bugs issue tracking versions is here: #3197.  Can you, dear reader, try it out?  Do an in-place upgrade on your version, or even a test install with a VM?  I want to see what happens in the wild.