Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2497

Raspberry Pi OS • Re: Bookworm LVM rootfs

$
0
0
My custom imaging script does still work but is well past its sell-by date (and doesn't do GPT or LVM). I'm hoping I can retire it in favor of 'sdm' :-)
Email me or post your custom script on the sdm github and I'll do a jumpstart convert for you
Thanks for the offer but I doubt it would be useful to others in its current form! It uses /etc/rc.local which needs to be changed to some one-time systemd service. It also expects two tarballs (wrk.tar and lo.tar) which are used to populate /wrk/ and $HOME/* plus there some ssh keys going on in there because a working target sshd is required. Worse, from a 3rd party aspect, is it uses 'go'(*) which sources its sub-scripts from a hard coded(**) /usr/local/sd/syschk/lib/ path. I did create a git repo for it but no free time - the main reason I created the repo was to learn 'git' prior to creating a repo for my QT build stuff. It works ok for me in that..

Code:

$ ./go --all sde  2023-10-10-raspios-bookworm-arm64.img.xz pi99
..will write that rpi image to /dev/sde, after using 'udisksctl' to shove my stuff into it. The rpi hostname will be (in above example) "pi99". After powerup, /etc/rc.local runs once then..

Code:

$ ./go --post pi99
..does apt-get upgrade and other stuff, nomachine for instance.

So not much use to others. I wouldn't want you to have to wade through it, especially as I suspect 'sdm' can replace it!

(*) my script(s), not the language.

(**) whenever you've seen me post a script commencing like this..

Code:

#!/bin/bashNAM=`basename "$0"`SUB="/usr/local/sd/syschk/lib". "$SUB/f_tmp"
..that's 'go' being used. It shouldn't be like that. The plan was to have an preset environmental variable (eg: $GOSUB) and should simply be..

Code:

#!/bin/bashNAM=`basename "$0"`. "$GOSUB/f_tmp"
Ancient workplace politics at play there. It's been on my "2do" list for years. I thought fixing it would be a good way to learn git.

Statistics: Posted by swampdog — Tue Mar 26, 2024 10:16 pm



Viewing all articles
Browse latest Browse all 2497

Trending Articles