All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

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) { ...@@ -137,8 +137,16 @@ if ($stype != 131) {
mysystem("$DOSTYPE -f /dev/$disk $slice 131"); mysystem("$DOSTYPE -f /dev/$disk $slice 131");
} }
mysystem("mkfs $fsdevice"); # eh, quick try for ext3 -- no way we can consistently check the kernel for
mysystem("echo \"$fsdevice $mountpoint ext2 defaults 0 0\" >> /etc/fstab"); # 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("mount $mountpoint");
mysystem("mkdir $mountpoint/local"); 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