changed lsb patch to system-release

This commit is contained in:
Alex Burmashev 2013-05-22 12:51:23 +04:00
parent b45a113081
commit 968b0e2e0f

View file

@ -5,8 +5,8 @@ diff -Nur livecd-tools-18.8.old/imgcreate/live.py livecd-tools-18.8/imgcreate/li
else:
long = "%s (%s)" % ("ROSA Desktop.Fresh 2012", kernel)
+ if os.path.exists(self._instroot + "/bin/lsb_release"):
+ long = subprocess.check_output("echo -n `lsb_release -d -s | sed 's/\"//g'`", shell=True)
+ if os.path.exists(self._instroot + "/etc/system-release"):
+ long = subprocess.check_output("echo -n `sed 's, for .*$,,g' /etc/system-release`", shell=True)
+ logging.warn('using LSB info for syslinux names')
+
# tell dracut not to ask for LUKS passwords or activate mdraid sets