(cosmetics) scripts/image: do not create unused dist specific files in /etc

This commit is contained in:
Stefan Saraev 2015-08-08 10:10:50 +03:00
parent b9284db4a3
commit 0d8bb0d800

View File

@ -87,15 +87,8 @@ fi
ln -s lib $INSTALL/usr/lib64 ln -s lib $INSTALL/usr/lib64
fi 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 "$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 # create /etc/os-release
echo -e "NAME=\"$DISTRONAME\"" > $INSTALL/etc/os-release echo -e "NAME=\"$DISTRONAME\"" > $INSTALL/etc/os-release
echo -e "VERSION=\"$OPENELEC_VERSION\"" >> $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 echo -e "OPENELEC_BUILD=\"unofficial\"" >> $INSTALL/etc/os-release
fi fi
if [ "$OFFICIAL" = "yes" ]; then
echo "official" > $INSTALL/etc/build
else
echo "unofficial" > $INSTALL/etc/build
fi
# create /etc/issue # create /etc/issue
echo $GREETING0 > $INSTALL/etc/issue echo $GREETING0 > $INSTALL/etc/issue
echo $GREETING1 >> $INSTALL/etc/issue echo $GREETING1 >> $INSTALL/etc/issue