disk size in pre script?
ryan at stat.Berkeley.EDU
Thu Jan 10 20:16:59 GMT 2008
On Wed, Jan 09, 2008 at 05:17:36PM -0800, Ryan Lovett wrote:
> Is it possible to fetch the size of the disk in the pre script?
> list-devices and udevinfo return empty values. (maybe because /dev hasn't
> been set up yet?)
It looks like this isn't possible because while udevd is running during
%pre, the installer hasn't loaded the kernel modules for disks and what
not so there aren't any relevant block devices up yet.
Maybe it'd be feasible to inject a script into a partman directory, but
this is probably more trouble than its worth.
More information about the Ubuntu-installer