forked from mirrored-repos/manjaro-tools
machine-id: some more fixes
This commit is contained in:
commit
e91c256819
1 changed files with 3 additions and 3 deletions
|
@ -18,11 +18,11 @@ configure_machine_id(){
|
||||||
# set unique machine-id
|
# set unique machine-id
|
||||||
msg2 "Setting machine-id ..."
|
msg2 "Setting machine-id ..."
|
||||||
if [[ -z "$(echo $1 | grep root-image)" ]];then
|
if [[ -z "$(echo $1 | grep root-image)" ]];then
|
||||||
mkdir -p $1/etc
|
mkdir -p $1/etc
|
||||||
mkdir -p $1/var/lib/dbus
|
mkdir -p $1/var/lib/dbus
|
||||||
fi
|
fi
|
||||||
dbus-uuidgen --ensure=$1/etc/machine-id
|
chroot $1 dbus-uuidgen --ensure=/etc/machine-id
|
||||||
cp $1/etc/machine-id $1/var/lib/dbus/machine-id
|
chroot $1 ln -s /etc/machine-id /var/lib/dbus/machine-id
|
||||||
}
|
}
|
||||||
|
|
||||||
# $1: chroot
|
# $1: chroot
|
||||||
|
|
Loading…
Reference in a new issue