diff options
author | jkh <jkh@FreeBSD.org> | 2000-02-29 10:40:59 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 2000-02-29 10:40:59 +0000 |
commit | 8905bd306e55ccfa2a8ee59d95e9ed5bc3785f8a (patch) | |
tree | 86307e06f2ef1119a459d79e6433486546aa6a95 /usr.sbin/sysinstall/disks.c | |
parent | 35e15b09be3df921694ae02d3105e751fa8fa411 (diff) | |
download | FreeBSD-src-8905bd306e55ccfa2a8ee59d95e9ed5bc3785f8a.zip FreeBSD-src-8905bd306e55ccfa2a8ee59d95e9ed5bc3785f8a.tar.gz |
o Add support for loading the rsaref or rsaintl packages, depending
on locale.
o Allow use of "G" in label editor to stand for gigabytes. This
is actually an unrelated patch which I meant to commit separately
but what the heck, it's late.
Partially submitted by: phk
Diffstat (limited to 'usr.sbin/sysinstall/disks.c')
-rw-r--r-- | usr.sbin/sysinstall/disks.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c index 2a611b9..16be5e2 100644 --- a/usr.sbin/sysinstall/disks.c +++ b/usr.sbin/sysinstall/disks.c @@ -309,6 +309,8 @@ diskPartition(Device *dev) if (val && (size = strtol(val, &cp, 0)) > 0) { if (*cp && toupper(*cp) == 'M') size *= ONE_MEG; + else if (*cp && toupper(*cp) == 'G') + size *= ONE_GIG; strcpy(tmp, "165"); val = msgGetInput(tmp, "Enter type of partition to create:\n\n" "Pressing Enter will choose the default, a native FreeBSD\n" @@ -733,6 +735,8 @@ diskPartitionNonInteractive(Device *dev) /* Look for sz bytes free */ if (*cp && toupper(*cp) == 'M') sz *= ONE_MEG; + else if (*cp && toupper(*cp) == 'G') + sz *= ONE_GIG; for (i = 0; chunk_info[i]; i++) { /* If a chunk is at least sz MB, use it. */ if (chunk_info[i]->type == unused && chunk_info[i]->size >= sz) { |