Merge pull request #426 from chewitt/machineid_dir_70

systemd: ensure /storage/.cache exists before writing machine-id (backport of #425)
This commit is contained in:
CvH 2016-06-06 10:40:56 +02:00
commit 1190302bb2

View File

@ -36,6 +36,7 @@ fi
if [ -z "$MACHINEID" ]; then if [ -z "$MACHINEID" ]; then
MACHINEID=`echo $MAC_ADDRESS | md5sum | cut -f1 -d" "` MACHINEID=`echo $MAC_ADDRESS | md5sum | cut -f1 -d" "`
mkdir -p /storage/.cache
fi fi
echo "$MACHINEID" > /storage/.cache/machine-id echo "$MACHINEID" > /storage/.cache/machine-id