When get_distro and get_base_distro do not detect the linux distribution
a warning is triggered.
AssignHostname fails if the distribution is not known.
echo "suse"
elif [ -e "$root_dir/gentoo-release" ]; then
echo "gentoo"
+ else
+ warn "Unknown base distro."
fi
}
echo "suse"
elif [ -e "$root_dir/gentoo-release" ]; then
echo "gentoo"
+ else
+ warn "Unknown distro."
fi
}
echo "$hostname" > "${target}/etc/HOSTNAME";;
gentoo)
sed -ie "s/\(\(HOSTNAME\)\|\(hostname\)\)=.*$/\1=\"$hostname\"/" "$target/etc/conf.d/hostname";;
+ *) log_error "Don't know how to assign hostname. Unknown linux distribution.";;
esac
# Some Linux distributions assign the hostname to 127.0.1.1 in order to be