FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-01-2011, 01:18 PM
Martin Gracik
 
Default Remove raidstart-stub and raidstop-stub

These stubs are not used anymore. They don't even work in the state
they are now.

Related: rhbz#706099
---
command-stubs/raidstart-stub | 57 ------------------------------------------
command-stubs/raidstop-stub | 44 --------------------------------
scripts/upd-instroot | 2 -
3 files changed, 0 insertions(+), 103 deletions(-)
delete mode 100755 command-stubs/raidstart-stub
delete mode 100755 command-stubs/raidstop-stub

diff --git a/command-stubs/raidstart-stub b/command-stubs/raidstart-stub
deleted file mode 100755
index 2a0d8b3..0000000
--- a/command-stubs/raidstart-stub
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/python
-#
-# raidstart-stub
-#
-# Copyright (C) 2007 Red Hat, Inc. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-import os
-import sys
-
-# for testing
-if (os.path.exists('rpmmodule')):
- sys.path.append('rpmmodule')
- sys.path.append('libfdisk')
- sys.path.append('balkan')
- sys.path.append('gnome-map')
- sys.path.append('isys')
-
-sys.path.append('/usr/lib/anaconda')
-
-import anaconda_log
-import fsset
-import raid
-import isys
-from sys import argv
-
-if len(argv) != 2 or argv[1][:7] != "/dev/md":
- print "usage: raidstart /dev/md[minornum]"
- sys.exit(1)
-
-targMinor = int(argv[1][7:])
-
-drives = isys.hardDriveDict().keys()
-drives.sort (isys.compareDrives)
-
-raidDevices = raid.scanForRaid(drives)
-for (minor, devices, level, totalDisks) in raidDevices:
- if targMinor == minor:
- devName = "md%d" % (minor,)
- isys.raidstart(devName, devices[0])
- sys.exit(0)
-
-print "could not find devices associated with raid device md%d" % targMinor
-sys.exit(1)
diff --git a/command-stubs/raidstop-stub b/command-stubs/raidstop-stub
deleted file mode 100755
index 942c29e..0000000
--- a/command-stubs/raidstop-stub
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/python
-#
-# raidstop-stub
-#
-# Copyright (C) 2007 Red Hat, Inc. All rights reserved.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
-
-import os
-import sys
-
-# for testing
-if (os.path.exists('rpmmodule')):
- sys.path.append('rpmmodule')
- sys.path.append('libfdisk')
- sys.path.append('balkan')
- sys.path.append('gnome-map')
- sys.path.append('isys')
-
-sys.path.append('/usr/lib/anaconda')
-
-import anaconda_log
-import fsset
-import raid
-import isys
-from sys import argv
-
-if len(argv) != 2 or argv[1][:7] != "/dev/md":
- print "usage: raidstop /dev/md[minornum]"
- sys.exit(1)
-
-isys.raidstop(argv[1][5:])
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index bf45a71..603a1b4 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -1123,8 +1123,6 @@ mkdir -p $DEST/lib
mkdir -p $DEST/firmware
ln -snf /modules $DEST/lib/modules
ln -snf /firmware $DEST/lib/firmware
-cp $DEST/usr/lib/anaconda/raidstart-stub $DEST/usr/bin/raidstart
-cp $DEST/usr/lib/anaconda/raidstop-stub $DEST/usr/bin/raidstop
cp $DEST/usr/lib/anaconda/losetup-stub $DEST/usr/bin/losetup
cp $DEST/usr/lib/anaconda/list-harddrives-stub $DEST/usr/bin/list-harddrives
cp $DEST/usr/lib/anaconda/loadkeys-stub $DEST/usr/bin/loadkeys
--
1.7.3.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 04:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org