Fxied bugs in srclabel code
Kyle Sheumaker [Fri, 22 Apr 2016 20:11:56 +0000 (15:11 -0500)]
etc/cloner3/detect_label.sh
etc/cloner3/get_setup.sh

index 8cfcbd8..55d1f20 100755 (executable)
@@ -6,9 +6,10 @@
 
 header "Trying to locate the srclabel '${_srclabel}' device"
 
+mkdir -p /mnt/media 
+
 msg -n "Mounting ${ANSI_BLUE}${i}${ANSI_DONE} on /mnt/media"
-mount -t ext4 LABEL=${_srclabel} /mnt/media >> /tmp/stdout.log \ 
-       2>> /tmp/stderr.log
+mount -t ext4 LABEL=${_srclabel} /mnt/media 
 
 if [ "$?" = "0" ]
 then
index d5c945c..6e14c51 100755 (executable)
@@ -24,7 +24,8 @@ write_client_conf () {
 if [ "${_srcpath}" != "" ]
 then
        header "Copying setup information from ${_srcpath}"
-elif [ "${_srclabel}" != ""]
+elif [ "${_srclabel}" != "" ]
+then
        header "Using setup from LABEL=${_srclabel}"
 else
        if [ "${_server}" = "" ]
@@ -39,6 +40,12 @@ if [ "${_image}" = "" ]
 then
        # user has not specified the cloner image from the command line
 
+       if [ "${_server}" = "" ]
+       then
+               clone_fatal_error "No image or server specified on the kernel command line"
+               exit
+       fi
+
        USE_SETTINGS=""
 
        MACLIST=""