No longer used. mount can now handle loop devices itself. --- pyanaconda/isys/__init__.py | 28 ---------------------------- scripts/upd-instroot | 1 - 2 files changed, 0 insertions(+), 29 deletions(-) diff --git a/pyanaconda/isys/__init__.py b/pyanaconda/isys/__init__.py index 3f026fc..aebcad1 100755 --- a/pyanaconda/isys/__init__.py +++ b/pyanaconda/isys/__init__.py @@ -80,24 +80,6 @@ EARLY_SWAP_RAM = _isys.EARLY_SWAP_RAM def pathSpaceAvailable(path): return _isys.devSpaceFree(path) -## Set up an already existing device node to be used as a loopback device. -# @param device The full path to a device node to set up as a loopback device. -# @param file The file to mount as loopback on device. -# @param readOnly Should this loopback device be used read-only? -def losetup(device, file, readOnly = 0): - # FIXME: implement this as a storage.devices.Device subclass - if readOnly: - mode = os.O_RDONLY - else: - mode = os.O_RDWR - targ = os.open(file, mode) - loop = os.open(device, mode) - try: - _isys.losetup(loop, targ, file) - finally: - os.close(loop) - os.close(targ) - def lochangefd(device, file): # FIXME: implement this as a storage.devices.Device subclass loop = os.open(device, os.O_RDONLY) @@ -108,16 +90,6 @@ def lochangefd(device, file): os.close(loop) os.close(targ) -## Disable a previously setup loopback device. -# @param device The full path to an existing loopback device node. -def unlosetup(device): - # FIXME: implement this as a storage.devices.Device subclass - loop = os.open(device, os.O_RDONLY) - try: - _isys.unlosetup(loop) - finally: - os.close(loop) - ## Mount a filesystem, similar to the mount system call. # @param device The device to mount. If bindMount is True, this should be an # already mounted directory. Otherwise, it should be a device diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 3a28b26..937f513 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -1107,7 +1107,6 @@ ln -snf /modules $DEST/lib/modules ln -snf /firmware $DEST/lib/firmware cp $DEST/usr/share/anaconda/raidstart-stub $DEST/usr/bin/raidstart cp $DEST/usr/share/anaconda/raidstop-stub $DEST/usr/bin/raidstop -cp $DEST/usr/share/anaconda/losetup-stub $DEST/usr/bin/losetup cp $DEST/usr/share/anaconda/list-harddrives-stub $DEST/usr/bin/list-harddrives cp $DEST/usr/share/anaconda/loadkeys-stub $DEST/usr/bin/loadkeys cp $DEST/usr/share/anaconda/mknod-stub $DEST/usr/bin/mknod -- 1.7.2.2 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list