Fix an issue with parted on partitions without filesystems
Kyle Sheumaker [Tue, 7 Feb 2012 21:05:10 +0000 (15:05 -0600)]
etc/cloner/prep_disks.sh
etc/hardware.sh
manifest

index e7a8438..0658c49 100755 (executable)
@@ -111,6 +111,11 @@ then
                                PED_PART_FLAGS=`echo $line | cut -d":" -f7`
                                PED_PART_FLAGS=`echo $PED_PART_FLAGS | sed s/\;//g`
                                PED_PART_FLAGS=`echo $PED_PART_FLAGS | sed s/\,//g`
+
+                               if [ "${PED_PART_FSTYPE}" == "" ]
+                               then
+                                       PED_PART_FSTYPE="ext4"
+                               fi
                
                                if [ "${PED_DEV_LABEL}" == "msdos" ]
                                then
index d4bcf3f..91f0935 100755 (executable)
@@ -92,6 +92,12 @@ do
        /bin/ip link set dev ${i} up
        /sbin/ifconfig ${i} up
 
+       if [ "${_mtu}" != "" ]
+       then
+               msg "Setting MTU to ${_mtu} for ${i}"
+               /bin/ip link set dev ${i} mtu ${_mtu} up
+       fi
+
        msg "Sleeping for 15 seconds for link to come up on ${i}"
        sleep 15
 
index c3d7c01..e6c814f 100644 (file)
--- a/manifest
+++ b/manifest
@@ -23,6 +23,7 @@
 644:./etc/lvm/lvm.conf
 755:./etc/rescue/startup.sh
 755:./etc/syscheck/startup.sh
+755:./etc/script/startup.sh
 644:./etc/modules_other.conf
 755:./etc/profile
 644:./etc/shells
@@ -47,3 +48,4 @@
 666:./var/logdev/.keep
 666:./cloner/mnt/.keep
 666:./cloner/setup/.keep
+666:./scripts/.keep