Build failed error too general

GitHub
chore fix type · m3m3-0s/meme-os@21a3dfe
Contribute to m3m3-0s/meme-os development by creating an account on GitHub.
29 Replies
thaleous
thaleousOP5mo ago
how can i make it work in build time
#!/bin/bash

# Define the new hostname
NEW_HOSTNAME="my-os"

# Update /etc/hostname with the new hostname
echo "$NEW_HOSTNAME" > /etc/hostname

# Update /etc/hosts to reflect the new hostname
sed -i "s/localhost[ \t]*localhost/localhost $NEW_HOSTNAME/" /etc/hosts
#!/bin/bash

# Define the new hostname
NEW_HOSTNAME="my-os"

# Update /etc/hostname with the new hostname
echo "$NEW_HOSTNAME" > /etc/hostname

# Update /etc/hosts to reflect the new hostname
sed -i "s/localhost[ \t]*localhost/localhost $NEW_HOSTNAME/" /etc/hosts
this is the change-hostname.sh or can i do this using the systemd module
#!/bin/bash
echo "my-os" > /etc/hostname
hostnamectl set-hostname meme-os
#!/bin/bash
echo "my-os" > /etc/hostname
hostnamectl set-hostname meme-os
fiftydinar
fiftydinar5mo ago
I think that only using hostnamectl is sufficient but not sure if even that works in build-time
thaleous
thaleousOP5mo ago
hostnamectl is a systemd thing
fiftydinar
fiftydinar5mo ago
yes
thaleous
thaleousOP5mo ago
doesnt worrk unless systemd module has a feature for that?
fiftydinar
fiftydinar5mo ago
hmm, I'm outta ideas then no, it doesn't have
thaleous
thaleousOP5mo ago
do u have any idea why the error is occuring script looks good
fiftydinar
fiftydinar5mo ago
yes, but that doesn't work in build-time
thaleous
thaleousOP5mo ago
why not
fiftydinar
fiftydinar5mo ago
Not sure for the specific reason why
thaleous
thaleousOP5mo ago
how does bazzite achieve this then? they change /etc/hostname
fiftydinar
fiftydinar5mo ago
they maybe change /usr/etc/hostname instead of /etc/
thaleous
thaleousOP5mo ago
what made u think of that they are the same?
fiftydinar
fiftydinar5mo ago
ostree doesn't allow to add or modify /etc/hosts in build-time, but adding the file in /usr/etc/hosts works maybe it's the similar case here
thaleous
thaleousOP5mo ago
oh so it is just that during build time /etc/hostname is read-only
fiftydinar
fiftydinar5mo ago
yeah, I believe that is the case
thaleous
thaleousOP5mo ago
did set-hostname on my bazzite rn then cat /etc/hostname it did change the file, so it is not read only?
fiftydinar
fiftydinar5mo ago
Maybe Bazzite does this in runtime didn't look into it
thaleous
thaleousOP5mo ago
during runtime hhmm
fiftydinar
fiftydinar5mo ago
you did that in runtime that's expected to work
thaleous
thaleousOP5mo ago
how can i do a runtime change with bluebuild?
fiftydinar
fiftydinar5mo ago
it's basically a systemd service which fires script in /usr/bin/ that's how some of those runtime changes are generally done
thaleous
thaleousOP5mo ago
so basically i create a script that is located in /usr/bin/ and itll fire automatically?
fiftydinar
fiftydinar5mo ago
that & for it to fire automatically, systemd service needs to be made
thaleous
thaleousOP5mo ago
which is enabled by defualt ig, if not i use the systemd module then thanks
xyny
xyny5mo ago
isn't setting the hostname something a local user should do themselves?
thaleous
thaleousOP5mo ago
usually yes, but by default bazzite ships it with their own hostname, and I'm planning on publicly sharing my os tho I've managed to do it
xyny
xyny5mo ago
maybe it's in the iso? idk
thaleous
thaleousOP5mo ago
ye maybe actually tho I've tweaked it either way
Want results from more Discord servers?
Add your server