[Lunar-commits] <lunar-iso> A couple of sane config defaults
Stefan Wold
ratler at lunar-linux.org
Sun Nov 17 00:32:42 CET 2013
commit 75d0d53cadce0c59f91ac0b2c4ba2a7afdd53446
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sat, 16 Nov 2013 15:29:36 -0800
URL: https://github.com/lunar-linux/lunar-iso/commit/75d0d53cadce0c59f91ac0b2c4ba2a7afdd53446
A couple of sane config defaults
---
lunar-install/sbin/lunar-install | +9/-2
1 file changed, 9 insertions(+), 2 deletions(-)
--- 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 <<EOF> $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
More information about the Lunar-commits
mailing list