From 75d0d53cadce0c59f91ac0b2c4ba2a7afdd53446 Mon Sep 17 00:00:00 2001 From: Stefan Wold Date: Sun, 17 Nov 2013 00:29:36 +0100 Subject: [PATCH] A couple of sane config defaults --- lunar-install/sbin/lunar-install | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lunar-install/sbin/lunar-install b/lunar-install/sbin/lunar-install index 89dd021b..7331498c 100755 --- a/lunar-install/sbin/lunar-install +++ b/lunar-install/sbin/lunar-install @@ -1152,8 +1152,15 @@ transfer() cp /etc/lsb-release $TARGET/etc/ cp /etc/issue{,.net} $TARGET/etc/ - echo " LUNAR_MODULE=lunar" > $TARGET/etc/lunar/local/config - #cp /etc/lunar/local/.config* $TARGET/etc/lunar/local/ + # Some sane defaults + GCC_VER=$(chroot_run lsh installed_version gcc) + GCC_VER=${GCC_VER%.*} + cat < $TARGET/etc/lunar/local/config + LUNAR_COMPILER="GCC_${GCC_VER/./_}" + LUNAR_MODULE="lunar" +LUNAR_ALIAS_UDEV="systemd" +LUNAR_ALIAS_KMOD="kmod" +EOF # root user skel files find $TARGET/etc/skel ! -type d | xargs -i cp '{}' $TARGET/root