[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] remount cow read-only *before* prompting user to remove usb flash drive



Hi

Please accept the following patch that calls the read-only remount of the cow 
fs before prompting the user to remove the usb flash drive. Otherwise the user 
removes the flash drive and the remount operation just fails and the cow 
filesystem is not cleanly unmounted.

Regards

Ronny

-- 
Ronny Standtke                 Fachhochschule Nordwestschweiz
Dozent Medienpädagogik / ICT   Pädagogische Hochschule
Telefon: +41 32 628 67 08      Obere Sternengasse 7
Mobil  : +41 79 786 81 82      4502 Solothurn
From 5252510e907b80207c342da58e83c9802b85142a Mon Sep 17 00:00:00 2001
From: Ronny Standtke  <ronny.standtke@fhnw.ch>
Date: Wed, 1 Dec 2010 20:36:08 +0000
Subject: [PATCH] remount cow read-only *before* prompting user to remove usb flash drive

---
 debian/live-boot.init |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/live-boot.init b/debian/live-boot.init
index 2ea72cb..f8471b6 100644
--- a/debian/live-boot.init
+++ b/debian/live-boot.init
@@ -156,6 +156,8 @@ do_stop ()
 		esac
 	done
 
+	mount -o remount,ro /live/cow
+
 	if [ -z ${QUICKREBOOT} ]
 	then
 
@@ -223,8 +225,6 @@ case "${1}" in
 				[ "${VERBOSE}" != no ] && log_end_msg 1
 				;;
 		esac
-
-		mount -o remount,ro /live/cow
 		;;
 
 	*)
-- 
1.7.2.3


Reply to: