-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using of sdm without of system-wide installation #216
Comments
No, it's not possible, and it's a huge amount of work and testing, and the value of it is completely unclear to me. I don't understand your point about "This would be a good option to allow the user to build the image without installing additional software.". What additional software are you referring to, on the host, or in the IMG? and how would you envision this being "better" in some meaningful way than the current design? Thx |
Hi, But anyway, thank you for this great swiss-knife for image customization, I can't imagine how much time I would spend implementing a similar tool. |
OK, I understand what you're trying to do, but unfortunately it's a massive lift to eliminate the use of /etc/sdm. One alternative would be for you to create your own repository to provide a .deb packaged version of sdm. I'm happy to work with you on this for the sdm side of things, but at the moment I'm not able to undertake this myself. Additional thought: If you'd like to discuss privately, please feel free to email me. My email is on the sdm README. |
I have created a Dockerfile that installs sdm in a container.
Here is an example invocation: docker run --privileged -it --rm -v .:/home/agent/hostdir -v /dev:/dev "$DOCKER_IMAGE_NAME" /bin/bash -v -c "
sudo sdm \
--plugin @/home/agent/hostdir/sdm-plugin-commands \
--plugin-debug \
--autologin \
--expand-root \
--regen-ssh-host-keys \
--hostname $IMAGE_HOSTNAME \
--burnfile $CONTAINER_CUSTOMIZED_IMAGE_FILE \
$CONTAINER_IMAGE_FILE |
Between the two of you (Simlu, on your #155 thread), I wanted to confirm with the docker built scripts you've written, whether they actually work? It wasn't clear to me from the above, or #155 whether you'd successfully built an image, and had it output the img correctly from Docker? i.e. are there still outstanding issues for you both? Thanks! |
Hello @mattie47 Something worked, but we ended up rolling our own (for better control). So at this point we are no longer using sdm and I won't be of much help unfortunately. I'm happy to share pieces of our script though if you have concrete questions! Cheers, L~ |
I have a working setup that installs sdm in a docker container and then
runs sdm to customize an image. I have not yet opened the repo, but will do
so soon.
…On Wed, Jul 10, 2024 at 11:23 PM Matt ***@***.***> wrote:
Hi @thk686 <https://github.com/thk686> and @simlu
<https://github.com/simlu>
Between the two of you (Simlu, on your #155
<#155> thread), I wanted to confirm
with the docker built scripts you've written, whether they actually work?
It wasn't clear to me from the above, or #155
<#155> whether you'd successfully
built an image, and had it output the img correctly from Docker?
i.e. are there still outstanding issues for you both?
Thanks!
—
Reply to this email directly, view it on GitHub
<#216 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEQXSOODHE2UIU4QA2XPRLZLYCEDAVCNFSM6AAAAABIYEQ4YGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRRHE4TQMBTGQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Timothy H. Keitt
www keittlab org
|
Oof. If I had known about https://github.com/RPi-Distro/pi-gen I would have started there. Not as featured as sdm however. |
Pretty much my summary of it: #46 |
Thanks @simlu, @thk686 for your response. It's appreciated. I'm curious what you ended up going with as an alternative @simlu? I used SDM last year to build a number of RPI images and found it to be fantastic. @gitbls, your commitment to helping others and continued support/documentation of this tool is what makes it so useful. My problem now with ~20x RPIs is long maintenance. I didn't realize until Bookworm came out that there's not an easy upgrade path for Raspi OS say compared to Ubuntu with dist-upgrade, and I can't just reflash the SDs cards in these Pis. I'm then also looking at OTA flashing of images with perhaps an AB model using something like Mender. It all feels like it becomes complicated quickly lol |
You might want to read this: #237 (comment) This enables me to wholesale upgrade systems by dropping in a new disk, just like the old system, but with fresh new bits. Also, it is possible to upgrade the OS on a disk using some apt magic, but that same magic sometimes has problematic side effects that can leave your system not working well if you don't know what you're doing. Software is complicated. There are usually solutions for any problem, including the basic problem you're raisin. However, there are risks and costs associated with each approach. Kind of a "learn as much as you can about it, and then choose your approach" |
I can confirm that 90% is working when running inside docker, Else i want to congratulate @gitbls on beeing a wholesome maintainer and i encouruge everyone to give him the props he deserves 💸❤️ |
Is it possible to use sdm without of installation to system-wide directories like /etc/sdm? This would be a good option to allow the user to build the image without installing additional software.
The text was updated successfully, but these errors were encountered: