X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=modules%2Fdefault.mk;h=7c3133f913fa182f348e591fdc135ee282f21971;hb=de8f616e432b65807cbcbaba911b2e4bffda7750;hp=4bacb5ca6880fcb586efe774a33d065e811fe386;hpb=7108710a074408943ab0b6dfa9c85c5dd2caaa23;p=blast diff --git a/modules/default.mk b/modules/default.mk index 4bacb5c..7c3133f 100644 --- a/modules/default.mk +++ b/modules/default.mk @@ -32,7 +32,7 @@ ifdef keyboard _config: _keyboard endif _keyboard: ${CFGROOT} - sed -Ei 's;^XKBLAYOUT=.*$$;XKBLAYOUT="${keyboard}";;' "$${CFGROOT}/etc/default/keyboard" + -sed -Ei 's;^XKBLAYOUT=.*$$;XKBLAYOUT="${keyboard}";;' "$${CFGROOT}/etc/default/keyboard" ifdef raspi _config: _raspberry_config @@ -102,6 +102,7 @@ _users: ${CFGROOT} _hostname: ${CFGROOT} printf '%s\n' "$${hostname}" >"$${CFGROOT}/etc/hostname" + sed -Ei "s;^127\.0\.0\.1.*$$;& $${hostname};" "$${CFGROOT}/etc/hosts" ifdef wifi _config: ${CFGROOT}/etc/network/interfaces.d/wifi