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
thaleous4w 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
fiftydinar4w ago
I think that only using hostnamectl is sufficient but not sure if even that works in build-time
thaleous
thaleous4w ago
hostnamectl is a systemd thing
fiftydinar
fiftydinar4w ago
yes
thaleous
thaleous4w ago
doesnt worrk unless systemd module has a feature for that?
fiftydinar
fiftydinar4w ago
hmm, I'm outta ideas then no, it doesn't have
thaleous
thaleous4w ago
do u have any idea why the error is occuring script looks good
fiftydinar
fiftydinar4w ago
yes, but that doesn't work in build-time
thaleous
thaleous4w ago
why not
fiftydinar
fiftydinar4w ago
Not sure for the specific reason why
thaleous
thaleous4w ago
how does bazzite achieve this then? they change /etc/hostname
fiftydinar
fiftydinar4w ago
they maybe change /usr/etc/hostname instead of /etc/
thaleous
thaleous4w ago
what made u think of that they are the same?
fiftydinar
fiftydinar4w 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
thaleous4w ago
oh so it is just that during build time /etc/hostname is read-only
Want results from more Discord servers?
Add your server