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
thaleousOP3mo 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
fiftydinar3mo ago
I think that only using hostnamectl is sufficient but not sure if even that works in build-time
thaleous
thaleousOP3mo ago
hostnamectl is a systemd thing
fiftydinar
fiftydinar3mo ago
yes
thaleous
thaleousOP3mo ago
doesnt worrk unless systemd module has a feature for that?
fiftydinar
fiftydinar3mo ago
hmm, I'm outta ideas then no, it doesn't have
thaleous
thaleousOP3mo ago
do u have any idea why the error is occuring script looks good
fiftydinar
fiftydinar3mo ago
yes, but that doesn't work in build-time
thaleous
thaleousOP3mo ago
why not
fiftydinar
fiftydinar3mo ago
Not sure for the specific reason why
thaleous
thaleousOP3mo ago
how does bazzite achieve this then? they change /etc/hostname
fiftydinar
fiftydinar3mo ago
they maybe change /usr/etc/hostname instead of /etc/
thaleous
thaleousOP3mo ago
what made u think of that they are the same?
fiftydinar
fiftydinar3mo 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
thaleousOP3mo ago
oh so it is just that during build time /etc/hostname is read-only
fiftydinar
fiftydinar3mo ago
yeah, I believe that is the case
thaleous
thaleousOP3mo ago
did set-hostname on my bazzite rn then cat /etc/hostname it did change the file, so it is not read only?
fiftydinar
fiftydinar3mo ago
Maybe Bazzite does this in runtime didn't look into it
thaleous
thaleousOP3mo ago
during runtime hhmm
fiftydinar
fiftydinar3mo ago
you did that in runtime that's expected to work
thaleous
thaleousOP3mo ago
how can i do a runtime change with bluebuild?
fiftydinar
fiftydinar3mo 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
thaleousOP3mo ago
so basically i create a script that is located in /usr/bin/ and itll fire automatically?
fiftydinar
fiftydinar3mo ago
that & for it to fire automatically, systemd service needs to be made
thaleous
thaleousOP3mo ago
which is enabled by defualt ig, if not i use the systemd module then thanks
xyny
xyny3mo ago
isn't setting the hostname something a local user should do themselves?
thaleous
thaleousOP3mo 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
xyny3mo ago
maybe it's in the iso? idk
thaleous
thaleousOP3mo ago
ye maybe actually tho I've tweaked it either way
Want results from more Discord servers?
Add your server