revision 281 incorrectly applied a fix, this is the correct fix.
the helper we needed is ds_get_item not ds_get_item_path. LP: #1132686
This commit is contained in:
@@ -79,7 +79,7 @@ cirros_apply() {
|
||||
# here do any common things for $mode
|
||||
#
|
||||
local hostname=""
|
||||
if ds_get_item_path hostname || ds_get_item_path local-hostname; then
|
||||
if ds_get_item hostname || ds_get_item local-hostname; then
|
||||
hostname="${_RET%%.*}"
|
||||
echo "$hostname" > /etc/hostname
|
||||
hostname -F /etc/hostname
|
||||
|
||||
Reference in New Issue
Block a user