control armbian-common: move sudo to Depends; armbian-firstlogin assumes sudo#34
Conversation
WalkthroughThis change modifies the Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-12-06T21:01:15.488ZApplied to files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
this may not be necessary, |
that's correct, but the correct thing to do would be for whatever package ships armbian-firstlogin (currently unpackaged) to depend on sudo. and indeed, I would say, sudo is a very important program to have installed certainly on Ubuntu. FWIW, ubuntu-minial explicitly depends on it. |
all those scripts are inside bsp package. https://github.com/armbian/build/blob/main/lib/functions/bsp/armbian-bsp-cli-deb.sh#L80-L88 |
|
So this is, as with parted/fdisk [I believe #33, I'm writing this from my phone], is another case of armbian-bsp-cli which is a pkg that must be installed not in the rootfs but the image.
But sudo should be cached. It's not critical but it is reasonable.
I'm sure more could be done in Armbian/build. The bsp package could be split. packages/bsp has a lot of stuff that isn't board-specific.
otoh should we be signing up for such a process [right now] merely in the name of clean/DRY dependencies?
|
Indeed. We never had "armbian-generic", so those common things were simply packed to bsp. Yes, it can be split up.
Good question. Is "now" right time? Should this stay here: |
There was a problem hiding this comment.
I think that sudo is important enough in day-to-day use that we as armbian do not support installations that do not have it.
You remove sudo from your system at runtime, it's no longer an armbian-system. That's what Ubuntu essentially says in their ubuntu-minimal.
another boring change that does exactly what the commit claims.
armbian-firstloginwants to add the first user to thesudogroup.