cdrom: Update /etc/system-release when needed.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Sep 2013 19:28:52 +0000 (21:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Sep 2013 19:28:52 +0000 (21:28 +0200)
lfs/cdrom
tools/make-functions

index f19031d..5a85002 100644 (file)
--- a/lfs/cdrom
+++ b/lfs/cdrom
@@ -52,6 +52,10 @@ md5 :
 ###############################################################################
 
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       # Update /etc/system-release, because the string might have changed
+       # since stage2 has been executed..
+       echo "$(SYSTEM_RELEASE)" > /etc/system-release
+
        rm -rf /install/cdrom /tmp/*
        mkdir -p /install/cdrom/doc
 
index 3a16c02..3ff647c 100644 (file)
@@ -522,6 +522,7 @@ installmake() {
                                                TERM=$TERM PS1='\u:\w\$ ' \
                                                PATH=/tools/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin \
                                                VERSION=$VERSION \
+                                               SYSTEM_RELEASE="${SYSTEM_RELEASE}" \
                                                CONFIG_ROOT=$CONFIG_ROOT \
                                                NAME="$NAME" SNAME="$SNAME" SLOGAN="$SLOGAN" \
                                                CFLAGS="-Os" CXXFLAGS="-Os" \