Skip to content

Commit

Permalink
A couple of sane config defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratler committed Nov 16, 2013
1 parent 3d9678f commit 75d0d53
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lunar-install/sbin/lunar-install
Expand Up @@ -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
Expand Down

0 comments on commit 75d0d53

Please sign in to comment.