mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-04 23:31:31 +00:00
Remove livecd.py, which was never finished.
This commit is contained in:
parent
70658c34cf
commit
ca529d7223
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -3,6 +3,7 @@ livecd-rootfs (2.164) UNRELEASED; urgency=low
|
|||||||
* Run builds under eatmydata. (This doesn't actually seem to help very
|
* Run builds under eatmydata. (This doesn't actually seem to help very
|
||||||
much - it shaves a minute off a 48-minute test build on my laptop - but
|
much - it shaves a minute off a 48-minute test build on my laptop - but
|
||||||
it will stop people being distracted by it.)
|
it will stop people being distracted by it.)
|
||||||
|
* Remove livecd.py, which was never finished.
|
||||||
|
|
||||||
-- Colin Watson <cjwatson@ubuntu.com> Mon, 22 Jul 2013 11:35:23 +0100
|
-- Colin Watson <cjwatson@ubuntu.com> Mon, 22 Jul 2013 11:35:23 +0100
|
||||||
|
|
||||||
|
24
livecd.py
24
livecd.py
@ -1,24 +0,0 @@
|
|||||||
#!/usr/bin/python
|
|
||||||
import os,sys
|
|
||||||
import atexit
|
|
||||||
|
|
||||||
class Mount:
|
|
||||||
def __init__(self):
|
|
||||||
atexit.register(self.cleanup,self)
|
|
||||||
self.mounts={}
|
|
||||||
self.losetupDev=None
|
|
||||||
|
|
||||||
def addMount(self,name):
|
|
||||||
self.mounts[name]=1
|
|
||||||
|
|
||||||
def losetup(self,name):
|
|
||||||
if self.losetupDev==None:
|
|
||||||
self.losetupDev=os.popen("losetup -f").read().strip()
|
|
||||||
os.system("losetup %s %s" % (self.losetupDev,name)
|
|
||||||
|
|
||||||
def unLosetup(self):
|
|
||||||
os.system("losetup -d %s"%self.losetupDev)
|
|
||||||
|
|
||||||
def cleanup(self):
|
|
||||||
# XXX - need to unmount stuff
|
|
||||||
pass
|
|
Loading…
x
Reference in New Issue
Block a user