From 0d8bb0d800794ea475aa78069a6468747e232663 Mon Sep 17 00:00:00 2001 From: Stefan Saraev Date: Sat, 8 Aug 2015 10:10:50 +0300 Subject: [PATCH] (cosmetics) scripts/image: do not create unused dist specific files in /etc --- scripts/image | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/scripts/image b/scripts/image index 2bd9d87645..50cc9a0fbf 100755 --- a/scripts/image +++ b/scripts/image @@ -87,15 +87,8 @@ fi ln -s lib $INSTALL/usr/lib64 fi - echo "$DISTRONAME" > $INSTALL/etc/distribution - echo "$PROJECT.$TARGET_ARCH" > $INSTALL/etc/arch - echo "$OPENELEC_VERSION" > $INSTALL/etc/version echo "$TARGET_VERSION" > $INSTALL/etc/release - echo "$DISTRONAME ($([ "$OFFICIAL" = "yes" ] && echo "official" || echo "unofficial")) - Version: $OPENELEC_VERSION" > $INSTALL/etc/openelec-release - if [ -n "$GIT_HASH" ]; then - echo "$GIT_HASH" >> $INSTALL/etc/gitrev - fi - + # create /etc/os-release echo -e "NAME=\"$DISTRONAME\"" > $INSTALL/etc/os-release echo -e "VERSION=\"$OPENELEC_VERSION\"" >> $INSTALL/etc/os-release @@ -114,12 +107,6 @@ fi echo -e "OPENELEC_BUILD=\"unofficial\"" >> $INSTALL/etc/os-release fi - if [ "$OFFICIAL" = "yes" ]; then - echo "official" > $INSTALL/etc/build - else - echo "unofficial" > $INSTALL/etc/build - fi - # create /etc/issue echo $GREETING0 > $INSTALL/etc/issue echo $GREETING1 >> $INSTALL/etc/issue