[Pkg-iscsi-maintainers] Bug#631296: /etc/init.d/open-iscsi stop tried to unmount /, /usr, /srv...
Ritesh Raj Sarraf
rrs at debian.org
Thu Jun 23 06:12:42 UTC 2011
severity 631296 normal
tag 631296 + moreinfo
thanks
On 06/22/2011 11:13 PM, Julien Palard wrote:
> In the file /etc/init.d/umountiscsi.sh line 58
> DOS_PARTITIONS="`awk "/^\/dev\/$BLOCK_DEV/ { print \\$2; }" < /proc/mounts`"
> on my machine, matches / /usr /var /srv, so the script tried to umount them !
Please quote the full context.
for BLOCK_FILE in $SESSION_DIR/target*/*\:*/block/*; do
BLOCK_DEV=`echo "$BLOCK_FILE" | sed
's/.*block\///'`
DOS_PARTITIONS="`awk "/^\/dev\/$BLOCK_DEV/ {
print \\$2; }" < /proc/mounts`"
for DEVICE in $DOS_PARTITIONS; do
#log_progress_msg $DEVICE
#echo $DEVICE
umount $DEVICE
exit_status=$?
if ! [ $exit_status -eq 0 ]; then
umount_fail=1
log_warning_msg "Could not
unmount $DEVICE"
BLOCK_DEV is derived only from the iSCSI devices. I cannot see how that
will unmount local devices.
--
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-iscsi-maintainers/attachments/20110623/5ad77a11/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-iscsi-maintainers/attachments/20110623/5ad77a11/attachment.pgp>
More information about the Pkg-iscsi-maintainers
mailing list