Changeset 8761
- Timestamp:
- Nov 6, 2019, 4:10:16 PM (18 months ago)
- Location:
- lliurex-base-files/trunk/fuentes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-base-files/trunk/fuentes/debian/changelog
r7793 r8761 1 lliurex-base-files (16.06.27) xenial; urgency=medium 2 3 * Lliurex-version: Fix live detection 4 5 -- M.Angel Juan <m.angel.juan@gmail.com> Wed, 06 Nov 2019 16:09:37 +0100 6 1 7 lliurex-base-files (16.06.26) xenial; urgency=high 2 8 -
lliurex-base-files/trunk/fuentes/install/usr/bin/lliurex-version
r6886 r8761 22 22 23 23 def detect_live(): 24 test1=False24 #test1=False 25 25 test2=False 26 26 test3=False 27 27 28 28 if os.path.isdir('/rofs'): 29 r1=re.compile('^tmpfs\s/cow\stmpfs')30 r2=re.compile('^/cow\s/\soverlay fs')29 #r1=re.compile('^tmpfs\s/cow\stmpfs') 30 r2=re.compile('^/cow\s/\soverlay') 31 31 r3=re.compile('^/dev/loop0\s/rofs\ssquashfs') 32 32 with open('/proc/mounts') as mounts_file: 33 33 for line in mounts_file.readlines(): 34 if r1.match(line):35 test1=True34 #if r1.match(line): 35 # test1=True 36 36 if r2.match(line): 37 37 test2=True 38 38 if r3.match(line): 39 39 test3=True 40 if test 1 and test2 and test3:40 if test2 and test3: 41 41 pass 42 42 else:
Note: See TracChangeset
for help on using the changeset viewer.