rename image os

If I wanted to rename from bluefin to something else what how would I do that the image name does not seem to do that. Also how would I create a custom personalized DE just with system files?
Solution:
Here is an example script modifiying /etc/os-release https://github.com/winblues/blue95/blob/main/files/scripts/00-image-info.sh
Jump to solution
16 Replies
Luke Skywunker
Luke Skywunker•6mo ago
I believe all of that is handled in /etc/os-release
Solution
ledif
ledif•6mo ago
Here is an example script modifiying /etc/os-release https://github.com/winblues/blue95/blob/main/files/scripts/00-image-info.sh
Casual Linux Enjoyer
Casual Linux EnjoyerOP•6mo ago
So I would put this in files/scripts?
ledif
ledif•6mo ago
Yes, and update your recipe to call it
Casual Linux Enjoyer
Casual Linux EnjoyerOP•6mo ago
okay let me try that rq if you don't mind okay that built fine will it update in the fastfetch the os name or is it better I create a fastfetch config file nvm it updates just fine now time to create a fastfetch logo 🙂 thanks
uneekname
uneekname•4mo ago
I hope ya'll don't mind me reviving this, but I have a couple of related questions. - The linked script from blue95 looks like it'd make for a great BlueBuild module. Has that work already been done somewhere, or would it make a good contribution? - What specific var in the os-release file would change the text in my boot menu, and rpm-ostree status? I get confused when the images say (Silverblue) after the version number, because I also sometimes try vanilla Silverblue images which at this point are quite different than my BlueBuild image. Thanks in advance.
Luke Skywunker
Luke Skywunker•4mo ago
I think I'll experiment and see what I can come up with
uneekname
uneekname•4mo ago
Thanks @gmpinder, I don't mean to create work for you, just wanted to see what the status of things are 🙂
Robert
Robert•3mo ago
EU OS and all national images that we plan for would also benefit from such a module. 🙂
Luke Skywunker
Luke Skywunker•3mo ago
GitHub
feat: OS Release Module by gmpinder · Pull Request #417 · blue-bu...
This is a simple module designed to update the /etc/os-release variables. It's as easy as: type: os-release properties: NAME: WunkerOS ID: wunker_os PRETTY_NAME: Wunker OS for Nvidia ...
Luke Skywunker
Luke Skywunker•3mo ago
You can try it with
modules:
- type: os-release
source: ghcr.io/blue-build/modules/os-release:os-release
properties:
NAME: SomeOS
ID: some_os
PRETTY_NAME: Some OS
modules:
- type: os-release
source: ghcr.io/blue-build/modules/os-release:os-release
properties:
NAME: SomeOS
ID: some_os
PRETTY_NAME: Some OS
You can specify any key/value (string) pair and it will add/update the value in /etc/os-release
fiftydinar
fiftydinar•3mo ago
crying on using nushell
xyny
xyny•3mo ago
nushell good
uneekname
uneekname•2mo ago
For those finding this thread in the future: check out this docs page https://blue-build.org/reference/modules/os-release/
BlueBuild
os-release
The os-release module offers a way to modify and set values in the /etc/os-release file in your image.
uneekname
uneekname•2mo ago
Thanks @Luke Skywunker, just tested this out and it works like a charm.
! ! ! Haise
! ! ! Haise•2mo ago
the schema was fucked initially for os-release

Did you find this page helpful?