Mailinglist Archive: opensuse-bugs (19809 mails)
| < Previous | Next > |
[Bug 386487] shutdown destroys filesystem on sdhc-card installation
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Fri, 16 May 2008 03:09:44 -0600 (MDT)
- Message-id: <20080516090944.926D3CC7B5@xxxxxxxxxxxxxxxxxxxxxx>
https://bugzilla.novell.com/show_bug.cgi?id=386487
User werner@xxxxxxxxxx added comment
https://bugzilla.novell.com/show_bug.cgi?id=386487#c19
--- Comment #19 from Dr. Werner Fink <werner@xxxxxxxxxx> 2008-05-16 03:09:44
MST ---
Please use something like
mounts=/etc/fstab
test -r /proc/mounts && mounts=/proc/mounts
# Use cat and a pipe because umount changes
# /proc/mounts during direct read call
cat $mounts | \
while read des fs type rest; do
case "$des" in
""|\#*) continue ;; # Comment
swap) continue ;; # No umount on swap devices
esac
case ",$memfs," in
*,$type,*) continue ;; # Most of them are required
esac
case ",$netfs," in
*,$type,*) continue ;; # Avoid hanging reboot/halt
esac
blockdev --flushbufs $des
done
simply to be able to expand the mem and net type file system at
one global point in /etc/init.d/boot.localfs
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
User werner@xxxxxxxxxx added comment
https://bugzilla.novell.com/show_bug.cgi?id=386487#c19
--- Comment #19 from Dr. Werner Fink <werner@xxxxxxxxxx> 2008-05-16 03:09:44
MST ---
Please use something like
mounts=/etc/fstab
test -r /proc/mounts && mounts=/proc/mounts
# Use cat and a pipe because umount changes
# /proc/mounts during direct read call
cat $mounts | \
while read des fs type rest; do
case "$des" in
""|\#*) continue ;; # Comment
swap) continue ;; # No umount on swap devices
esac
case ",$memfs," in
*,$type,*) continue ;; # Most of them are required
esac
case ",$netfs," in
*,$type,*) continue ;; # Avoid hanging reboot/halt
esac
blockdev --flushbufs $des
done
simply to be able to expand the mem and net type file system at
one global point in /etc/init.d/boot.localfs
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |