we need a rework on 'machineid' #170

Closed
opened 2016-01-01 14:00:18 +00:00 by philm · 4 comments
philm commented 2016-01-01 14:00:18 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

This is the default settings of Calamares


---
# Whether to create /etc/machine-id for systemd.
systemd: true
# Whether to create /var/lib/dbus/machine-id for D-Bus.
dbus: true
# Whether /var/lib/dbus/machine-id should be a symlink to /etc/machine-id
# (ignored if dbus is false, or if there is no /etc/machine-id to point to).
symlink: true

However we set openrc basics by default, even on systemd systems:

write_calamares_machineid_conf(){
    local conf="$1/etc/calamares/modules/machineid.conf"
    echo "systemd: false" > $conf
    echo "dbus: true" >> $conf
    echo "symlink: false" >> $conf
}

So we have to investigate why we changed it and correct it for both init systems!

*Created by: philmmanjaro* This is the default settings of **Calamares** ``` --- # Whether to create /etc/machine-id for systemd. systemd: true # Whether to create /var/lib/dbus/machine-id for D-Bus. dbus: true # Whether /var/lib/dbus/machine-id should be a symlink to /etc/machine-id # (ignored if dbus is false, or if there is no /etc/machine-id to point to). symlink: true ``` However we set **openrc** basics by default, even on **systemd** systems: ``` write_calamares_machineid_conf(){ local conf="$1/etc/calamares/modules/machineid.conf" echo "systemd: false" > $conf echo "dbus: true" >> $conf echo "symlink: false" >> $conf } ``` So we have to investigate why we changed it and correct it for both **init systems**!
philm commented 2016-01-01 14:48:29 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

Basically, openrc doesn't need /etc/machine-id, it will create it if not present via init script.

*Created by: udeved* Basically, openrc doesn't need /etc/machine-id, it will create it if not present via init script.
philm commented 2016-01-01 15:05:03 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: philmmanjaro

So we remove the code and use the default settings shipped by calamares or what is the best option here? Since manjaro-tools detects the init system we can make it a little more dynamic ...

*Created by: philmmanjaro* So we remove the code and use the default settings shipped by **calamares** or what is the best option here? Since **manjaro-tools** detects the **init system** we can make it a little more dynamic ...
philm commented 2016-01-01 18:06:17 +00:00 (Migrated from gitlab2.manjaro.org)

Created by: udeved

I had the idea to bind mount machine-id, just like we bind mount /etc/resolv.conf

*Created by: udeved* I had the idea to bind mount machine-id, just like we bind mount /etc/resolv.conf
papajoke commented 2022-12-06 06:58:27 +00:00 (Migrated from gitlab2.manjaro.org)

mentioned in issue #338

mentioned in issue #338
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
tools/manjaro-tools#170
No description provided.