[Frugalware-darcs] setup-current: formatsik: make mountdev() actually work

VMiklos vmiklos at frugalware.org
Thu Mar 16 18:00:33 CET 2006


[formatsik: make mountdev() actually work
VMiklos <vmiklos at frugalware.org>**20051111224413] {
hunk ./src/plugins/formatdisk.c 367
-	// TODO: type, mount, etc
+	// mount
+	makepath(mountpoint);
+	umount_if_needed(mountpoint);
+	fw_system(g_strdup_printf("mount %s %s/%s",
+		dev, TARGETDIR, mountpoint));
hunk ./src/plugins/formatdisk.c 373
-	fprintf(fp, "%-16s %-16s %-11s %-16s %-3s %s\n", dev, mountpoint, type, "defaults", "1", "1");
+	// make fstab entry
+	type = findfs(dev);
+	fprintf(fp, "%-16s %-16s %-11s %-16s %-3s %s\n", dev, mountpoint,
+		type, "defaults", "1", "1");
hunk ./src/plugins/formatdisk.c 416
+	mountdev(ptr, "/", config);
}


More information about the Frugalware-darcs mailing list