]> git.ipfire.org Git - people/mfischer/ipfire-2.x.git/blobdiff - lfs/stage2
issue/motd: add architecture warning also to console and ssh logins.
[people/mfischer/ipfire-2.x.git] / lfs / stage2
index bacc9e0314625f7e132812bae82cdd08536b02c1..9032b013e74184b1b64cc5d7fd1be72a2cc5812a 100644 (file)
@@ -69,6 +69,11 @@ ifeq "$(IS_64BIT)" "1"
        ln -svf lib /usr/lib64
 endif
 
+ifeq "$(BUILD_ARCH)" "riscv64"
+       ln -svf . /lib/lp64d
+       ln -svf . /usr/lib/lp64d
+endif
+
        # Symlinks
        # for this reason, stage2 rebuild will broke the iso:perl, grubbatch
        -ln -sv $(TOOLS_DIR)/bin/{bash,cat,echo,pwd,stty} /bin
@@ -80,11 +85,13 @@ endif
 
        # Config files
        cp -rvf $(DIR_SRC)/config/etc/* /etc;
+       [ ! -d "$(DIR_SRC)/config/etc-$(BUILD_ARCH)" ] || cp -rvf $(DIR_SRC)/config/etc-$(BUILD_ARCH)/* /etc
        cp -rvf $(DIR_SRC)/config/lib/* /lib;
        touch /etc/{fs,m}tab
        echo "$(NAME) v$(VERSION) - $(SLOGAN)" >  /etc/issue
        echo "===============================" >> /etc/issue
        echo "\n running on \s \r \m"          >> /etc/issue
+       -cat /etc/motd >> /etc/issue
 
        # Bash startup files
        install --directory --mode=0755 --owner=root --group=root /etc/profile.d