[debian-knoppix] [PATCH] mkpersistant home with error-mesage if no partitions could be found (closes #84)
Hi,
attached patch fixes the problem described here.
http://www.knoppix.net/bugs/show_bug.cgi?id=84
cu
Fabian
--- /usr/sbin/mkpersistenthome 2003-02-25 02:35:32.000000000 +0100
+++ mkpersistenthome 2003-04-14 19:50:44.000000000 +0200
@@ -55,6 +55,7 @@
Die KNOPPIX-Konfiguration wurde erfolgreich gespeichert. Ihre Konfigurationsdateien werden beim nächsten KNOPPIX-Bootvorgang in die Ramdisk restauriert, wenn Sie im Bootscreen \"knoppix floppyconfig\" (Diskette) bzw. \"knoppix myconfig=/mnt/verzeichnisname\" angeben."
ERROR="Leider konnte die KNOPPIX-Konfiguration NICHT gespeichert werden:"
+MESSAGE_NO_PARTS="Keine passende Partition gefunden. Zur Erinnerung: NTFS-Partitonen können mit Linux nicht beschrieben werden."
;;
*)
TITLE1="Create persistent KNOPPIX home directory"
@@ -74,6 +75,7 @@
Creation of KNOPPIX configuration floppy was successful. Your configuration files will be reinstalled to the ramdisk on next KNOPPIX boot if you specify \"knoppix floppyconf\" (floppy disk), or \"knoppix myconfig=/mnt/directoryname\" at the boot prompt."
ERROR="The KNOPPIX configuration could NOT be saved:"
+MESSAGE_NO_PARTS="No suitable partitions could be found. Remember that NTFS-Partitions are not writable with linux."
;;
esac
@@ -85,6 +87,7 @@
for i in `awk '/^\/dev\/[hs]d[a-z].*\/mnt\/[hs]d[a-z]/{if(!/ntfs/){print $1}}' /etc/fstab`; do
PARTITIONS="$PARTITIONS ${i} [Disk/Partition] off"
done
+[ -z "$PARTITIONS" ] && { $DIALOG --cr-wrap --clear --title "$TITLE1" --msgbox "$ERROR $MESSAGE_NO_PARTS" 10 75; bailout; }
DIRECTORY=""
PARTITION=""
Reply to: