Commit 78f8781f authored by David Johnson's avatar David Johnson

Try for ext3, else fall back to ext2.

parent dc358822
......@@ -137,8 +137,16 @@ if ($stype != 131) {
mysystem("$DOSTYPE -f /dev/$disk $slice 131");
}
mysystem("mkfs $fsdevice");
mysystem("echo \"$fsdevice $mountpoint ext2 defaults 0 0\" >> /etc/fstab");
# eh, quick try for ext3 -- no way we can consistently check the kernel for
# support, off the top of my head
if ( -e "/sbin/mkfs.ext3") {
mysystem("mke2fs -j $fsdevice");
mysystem("echo \"$fsdevice $mountpoint ext3 defaults 0 0\" >> /etc/fstab");
}
else {
mysystem("mkfs $fsdevice");
mysystem("echo \"$fsdevice $mountpoint ext2 defaults 0 0\" >> /etc/fstab");
}
mysystem("mount $mountpoint");
mysystem("mkdir $mountpoint/local");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment