[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[partman] How to keep data in existing partitions



Hi all,

I'd like to instruct partman to create and  format a new partition for
/home  when  none  is  available,  but  use  the existing   one   if a
file-system is found.

I've tried to preseed the following recipe using the "keep" method for
/home:

d-i	partman-auto/expert_recipe string                               \
		boot-root ::                                            \
			2000 2250 2500 ext3                             \
				$primary{ } $bootable{ }                \
				method{ format } format{ }              \
				use_filesystem{ } filesystem{ ext3 }    \
				mountpoint{ /     }                     \
			.                                               \
			64 128 300% linux-swap                          \
				method{ swap } format{ }                \
			.                                               \
			8000 100000 1000000000 ext3                     \
				method{ keep } format{ }                \
				use_filesystem{ } filesystem{ ext3 }    \
				mountpoint{ /home } .                   \

but it seems to re-format the /home partition all  the time, even if a
file-system with data is present.

What should I set or change?

Thanks,

Free



Reply to: