summaryrefslogtreecommitdiffstats
path: root/losetup-stub
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-11-13 21:33:40 +0000
committerJeremy Katz <katzj@redhat.com>2002-11-13 21:33:40 +0000
commit89353736d86c8bbd4ec63e02fda8bdac9bcbabbb (patch)
treee5461fc1a626663cdab1b12c491f02edd459391d /losetup-stub
parent73fd88ebceb98416e05efa4b4a2418bc01f8fff7 (diff)
downloadanaconda-89353736d86c8bbd4ec63e02fda8bdac9bcbabbb.tar.gz
anaconda-89353736d86c8bbd4ec63e02fda8bdac9bcbabbb.tar.xz
anaconda-89353736d86c8bbd4ec63e02fda8bdac9bcbabbb.zip
remove these (again) (*mutter rsync mutter*)
Diffstat (limited to 'losetup-stub')
-rwxr-xr-xlosetup-stub40
1 files changed, 0 insertions, 40 deletions
diff --git a/losetup-stub b/losetup-stub
deleted file mode 100755
index e96f684ea..000000000
--- a/losetup-stub
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/python
-
-import os
-import sys
-
-# for testing
-if (os.path.exists('isys')):
- sys.path.append('isys')
-
-sys.path.append('/usr/lib/anaconda')
-
-import isys
-from sys import argv
-
-def usage():
- print "usage: losetup [-d] /dev/loopN [image]"
- sys.exit(1)
-
-if len(argv) < 3:
- usage()
-
-if argv[1] == "-d" and len(argv[2]) > 4 and argv[2][-5:-1] == "loop":
- try:
- isys.makeDevInode(argv[2][-5:], argv[2])
- isys.unlosetup(argv[2])
- except SystemError, (errno, msg):
- print msg
- sys.exit (1)
- sys.exit(0)
-
-if len(argv[1]) > 4 and argv[1][-5:-1] == "loop":
- try:
- isys.makeDevInode(argv[1][-5:], argv[1])
- isys.losetup(argv[1], argv[2])
- except SystemError, (errno, msg):
- print msg
- sys.exit (1)
- sys.exit(0)
-
-usage()