Commit Graph

1079 Commits

Author SHA1 Message Date
dsl
2073f7f26c Fix use of uninitialised variable.
I think the code it correct - but since it is only relevant when setting
the default boot partition (for mbr_bootsel) to an extended partition
it probably doesn't matter too often!
2006-05-12 21:22:34 +00:00
he
c4447252c1 Appease gcc 3.3.3 once more, marked with /* -Wuninitialized [many] */,
as it fixes build problem for many archs.
2006-05-12 13:31:56 +00:00
mrg
e8a328732c include <bsd.own.mk> before <bsd.sys.mk>. 2006-05-11 00:15:17 +00:00
garbled
2ed4156891 Add conv=sync so it doesn't "fail" when doing the dd. 2006-05-10 18:22:28 +00:00
garbled
8f74d51698 Prep doesn't really need bad144, and it doesn't even ship with it on the
floppy, so yank the code that calls it from md.c
2006-05-09 20:52:33 +00:00
snj
a640fe8c43 It's "its." 2006-04-24 19:00:29 +00:00
hubertf
6e0ce16052 Call the partition type 'type' instead of 'kind'.
Less confusing, and in sync with common terminology.

Found while walking someone through the installation on IRCnet #NetBSD...
2006-04-23 23:09:48 +00:00
he
1b9747a00f Fix an overlooked addition of an empty md_post_extract(). 2006-04-06 17:18:11 +00:00
garbled
cd8efba238 Small KNF fix 2006-04-05 17:01:21 +00:00
garbled
85af130714 Rather big update to sysinst, in order to get it working on the prep port.
1) Add an md_post_extract() function.  This function is called after
extracting the sets, and allows the arch to do something at that time.
In the case of prep, it is much easier to install the bootcode after all
the sets are extracted, so we do it in md_post_extract().  Added empty
md_post_extract() functions to all other arches so they compile.

2) Add md_mbr_use_wholedisk() and md_check_mbr().  In edit_mbr() I have
split off the code that uses the whole disk for NetBSD, into the
mbr_use_wholedisk() function.  On most ports that use mbr.c, I made
md_mbr_use_wholedisk() just call that and return.  On prep we create the
magical prep boot partition here.  The md_check_mbr() function allows the
arch to add additional checks after the user had manually edited the MBR
to make sure the choices he made allow NetBSD to function.  Added a dummy
routine to all mbr.c using arches.

3) Added code to bsdlabel.c to create a partition of type boot if
PART_BOOT is defined, but BOOT_SIZE is not defined.  Also added two more
globals "bootsize" and "bootstart" which must be seeded in order to do
so.  This is done on prep in md_check_mbr().

4) Added MBR_PTYPE_PREP to the list of MBR partitions.

5) Made the prep port actually install sanely.  It now creates a prep
boot partition, labels it correctly, installs all the sets, and then runs
mkbootimage and dd's the bootimage into the prep partition.  The result
is a prep installer that creates a bootable NetBSD installation
automatically.

6) Edited the prep menus and messages files to add new labels.  In the
case of the translated files, I just added the words in english for
someone to translate later.

I tried to xcompile a few arches to make sure I didn't break anything,
but I could have missed something.  Please let me know if I have broken
your arch in any way.  I'll watch the autobuilds for the next few days
too. For all ports other than prep there should be no functional changes
at all.
2006-04-05 16:55:01 +00:00
shige
a6d74476ad Added evbmips instkernel and sysinst. 2006-03-30 15:45:42 +00:00
tsutsui
f5040e78bb - Create an independent "boot" partition for bootloader rather than
marking a raw partition as "boot".
- Adjust default partition size for /usr so that extracted files
  won't flood on the default full installation.
2006-03-21 06:18:29 +00:00
tsutsui
f543e0f10e Some KNF adn ANSIfy. 2006-03-21 02:06:31 +00:00
tsutsui
dc8b8e8df8 Some KNF. 2006-03-21 02:05:33 +00:00
tsutsui
ec2e473d63 8 -> MAXPARTITIONS 2006-03-21 01:33:49 +00:00
tsutsui
bbcd8e938f Invoke MI installboot(8) directly rather than via a wrap script. 2006-03-21 01:32:19 +00:00
dsl
b051d89585 Make floppy install messages less confusing (maybe).
Make floppy file system type settable - it depends on the system you are
using to write the split sets, not the target.
2006-02-26 10:25:52 +00:00
dsl
ac97411677 Use a menu for 'install from floppy' questions.
Ask whether the user wants to delete the fetched files (ftp and floppy) after
install.  Delete after sucessful install of each file.
Kill bufferred tty input in a couple of places when typeahead will be wrong.
Code added to run.c to do a 'cd' in the child, unused (so far).
2006-02-25 20:21:00 +00:00
dsl
cd974d281d target_realpath() is only used by the code that updates libraries from
a.out to elf - so move it into aout2elf.c
I'm not even sure this code is important at all any more.
2006-02-25 13:29:34 +00:00
dsl
b68f172f6d Delete a load of messages that aren't used in the current code, and that
I don't suppose will be used soon.
2006-02-24 22:13:16 +00:00
dsl
1256423cda Put the name of the system/directory (etc) into the menus when asking
for the location of the source of the sets.
Put the menu in the place on the screen that used to contian a display
of what was selected.
Now these screen work the same way as the disk partitioning ones.
Leaves more screen real-estate for more questions.
2006-02-23 21:44:56 +00:00
dsl
35b84990cc Remove the notarfile_ok message - is it no longer needed.
We don't need to have dump_lfs to get lfs support.
(i386 will need 100k of stuff deleted to get newfs_lfs and fsck_lfs added)
2006-01-16 21:47:55 +00:00
dsl
afd41ad77a Show the number of sets installed and the next set above the menu that
asks you where to load stuff from.
Initialise stuff so that 'install default set of sets' works.
Fix install loop, removing infinite loop if/when first kernel not selected.
2006-01-15 20:41:00 +00:00
dsl
aab3fb05a5 Minor message change 2006-01-15 20:37:57 +00:00
dsl
e5231f4b40 Warp the cursor to the baud-rate entry after a com<n> entry is selected.
Allow a baud rate of 0 to be selected - uses speed set by bios.
2006-01-15 20:37:01 +00:00
dsl
9021097a89 Avoid having "//" in the middle of the transfer directory name.
(But ensure there is at least one.)
2006-01-15 20:34:20 +00:00
dsl
a6262bba3a Specify -V2 to newfs so that pages of superblock numbers are not output. 2006-01-15 20:33:05 +00:00
is
b2d05f8632 pacify gcc on VAX. 2006-01-15 13:56:15 +00:00
dsl
9fc0a7f722 Rework the installation loop so that it is possible to change the source
of the sets after an error.
A side effect is that it now does fetch-install-fetch-install..., not
fetch-...-fetch-install-...install.
The set selection code now uses a byte per set (not a bit-pattern) removing
the restriction of 32 sets, and allowing a per set status display (TBC).
Also TBC is deleting sets from /usr/INSTALL.
However I believe it works...
2006-01-12 22:02:44 +00:00
tsutsui
d87a63cda3 - Fix typo (s/BFS/SYSVBFS/)
- Use strlcpy(3) rather than strcpy(3)
2006-01-09 15:25:20 +00:00
tsutsui
756481fd55 First cut at sysinst support for ews4800mips. 2006-01-09 10:03:51 +00:00
tsutsui
77d25487c9 Add sysvbfs stuff. (enabled by md.h) 2006-01-09 10:00:34 +00:00
tsutsui
751d67ef2a Fix pasto in comments. 2006-01-08 18:48:25 +00:00
rjs
1276ee68fc Fix kernel names. 2005-12-30 11:41:43 +00:00
rjs
447c4d25c9 Initial import of md files for hpcarm. Copied from hpcmips. 2005-12-30 11:40:23 +00:00
xtraeme
7c0269873e Misc grammar and typos fixes from Enrique Matias Sanchez via
private email.
2005-12-13 14:23:06 +00:00
xtraeme
8db4fd7fd6 Misc grammar and typos fixes from Enrique Matias Sanchez via
private email.
2005-12-08 16:51:45 +00:00
dsl
4fba43286a Rework the checking of the typed size against the limit so we don't error
if the size is too large after we've rounded up to a cylinder boundary.
Stops silly errors (4170 > 4172) when partitions end at the end of the disk.
2005-11-05 09:58:32 +00:00
dsl
f95e28696d Fix check for root being entirely inside the area that can be read on
systems where the bios doesn't support LBA reads.
Due to faked geometries the last few (over 30000!) sectors may not be reported
as being readable, but we expect them to be in swap.  So we don't force a
root+usr install in that case.
2005-11-05 09:55:34 +00:00
dsl
0a0a96c37f Don't redisplay the title messages before displaying sub-menus during set
selection (eg selecting the X sets).
libcurses got changed earlier in the year so that the erase (and refresh)
of the message window caused all the unchanged spaces to be redrawn
overwriting most of the main set selection window.
2005-10-22 09:31:50 +00:00
dsl
70aacd016c Align header with table 2005-10-16 20:39:52 +00:00
agc
f0063a2802 My Spanish is somewhat lacking, but make it so that a "make distribution"
will succeed.
2005-10-06 20:47:14 +00:00
xtraeme
fff95ff31d Misc grammar and typos fixes. 2005-10-06 06:46:03 +00:00
rpaulo
44fb629a49 Add idea about installing binary snapshots from releng. 2005-10-05 16:44:39 +00:00
shige
18dc3d6415 Break infinite-loop at md_check_partitions. 2005-10-02 22:42:09 +00:00
chs
1c08e0e246 avoid another divide-by-zero while computing geometry. 2005-09-22 15:41:14 +00:00
jdarrow
95cef3f6e6 Change default countdown time to 5 seconds to match i386 bootblock
defaults in sys/arch/i386/stand/lib/boot_params.S

Fixes PR install/30422 by me.
2005-09-13 23:43:22 +00:00
christos
f9e066d346 Prettier /etc/fstab generation (from Liam Foy) 2005-09-12 15:47:09 +00:00
dsl
0c7751d999 Don't display 'Yes' under 'Newfs' for swap 2005-09-11 20:38:26 +00:00
martin
5b3beb916c Reword "fullpart" message to make it shorter. Should fix PR install/31292. 2005-09-11 16:43:11 +00:00
dsl
747d6ff347 Float the menu box of menu_fullpart (all mbr disk) below the text message.
Stops the German text flowing into the box, should fix PR/31292
2005-09-11 16:42:39 +00:00
dsl
297a2f78a6 Fix a couple of md translations that seem to have got awry. 2005-09-11 08:39:08 +00:00
he
7f48103418 Provide translaqtion for set_kernel_3 via cut+paste from #2. 2005-09-11 08:03:05 +00:00
he
b80a4384df Provide a translation for set_kernel_6 as well (cut+paste from #5). 2005-09-10 22:03:22 +00:00
dsl
e7fbd19237 Correct some messages which had the wrong number of format specifiers. 2005-09-10 21:51:12 +00:00
dsl
215bb0cb56 Count the number of '%' characters in every message and ensure the
translations have the same number as the english messages.
A quick nasty check that the messages uses as printf formats are sane.
2005-09-10 21:38:40 +00:00
he
e3c135df31 Provide a translation for set_kernel_2, copied from set_kernel_1. 2005-09-10 20:00:02 +00:00
dsl
d1c526b434 Change the message above the selection menu for root's shell to show
the correct default (ie what happens if you type enter) of /bin/sh.
Fixes PR install/32159
2005-09-09 23:20:33 +00:00
dsl
e8d475bd48 Increase width of menu to allow for longer spanish message for selecting units. 2005-08-28 19:57:25 +00:00
dsl
023b2922f8 Comment out the vstab entries generated for alternate root filesystems.
Marking the 'noauto' isn't enough to stop the code that remounts root rw
trying to use them.
2005-08-28 13:10:20 +00:00
dsl
2f42d205e2 Fix some obvious problems found by actually running an install in Spanish.
It is worth remembering that trailing spaces are significant in the message
files - they cause a line break if the text is auto-filled to the RH margin.
(This is often the case when the text is a format string.)
Note: nothing (yet) checks the number (or type) of the format effectors in
 the message strings.  I found and fixed one big error, but others will
 cause core dumps.
2005-08-27 21:24:13 +00:00
xtraeme
df49fbe1c2 Do not show the softdep option when the fstype is not FFS, from dsl@. 2005-08-27 16:34:15 +00:00
xtraeme
4674d5a41a 2nd stage of Spanish language translation (grammar fixes and typos),
I think it's enough for now.
2005-08-26 16:32:31 +00:00
xtraeme
40fa46d39d Spanish menus translation, contributed by Ivan-Benjamin Garcia Tora
with modifications by me.

Needs some review for typos maybe.
2005-08-26 15:44:43 +00:00
martin
bc0454688a Improve language slightly - partly based on suggestion from
Ignatios Souvatzis, any errors are mine.
2005-08-23 21:58:42 +00:00
dsl
72723e24f6 Fix PR/31023 completely - the messages should not have been displayed at all. 2005-08-20 20:43:26 +00:00
dsl
2b3be83563 Add missing 'n', fixes install/31023 - from Zafer Aydogan 2005-08-20 19:49:07 +00:00
chris
3d4b482c1f As requested in PR port-cats/30460 add support for GENERIC.ABLE kernel to
sysinst, and also add the ABLE install kernel to the generated release
kernels.
2005-08-07 00:21:38 +00:00
xtraeme
76bb6413ee If there's bootxx_lfsv2 on the ramdisk, we could use LFS for the
root filesystem, add the missing bit for that.
2005-07-09 15:05:13 +00:00
xtraeme
ab8df35bc8 After calling the function to find the disks, refresh the screen again.
This removes messages like "sd0: fabricating a geometry".
2005-07-09 14:56:23 +00:00
rillig
debefb7e31 Provide the user a menu to select each installation step on its own.
Currently there's no way to repeat steps or leave them out.
2005-06-28 07:41:46 +00:00
skrll
36d83be9a6 An xserver set is created - allow sysinst to handle it. 2005-06-24 14:52:48 +00:00
tron
731af7cc71 Add raid(4) to the list of machine-independent devices which "sysinst"
recognizes. This allows upgrading e.g. NetBSD-macppc or NetBSD-sparc64
systems with RAIDframe mirrored root devices.
2005-06-09 22:14:20 +00:00
chs
b944888e86 install the bootloader in the root of the target fs. 2005-06-05 18:55:30 +00:00
chs
2438f5c3ad add hp700 support. 2005-05-14 14:46:21 +00:00
christos
bc7bf3d1e0 Translation of the new messages, and some corrections from
Hernani Marques Madeira. Many thanks.
2005-05-08 22:35:20 +00:00
martin
db1141b950 Use "domain" verbatim in DNS context - the german translation is hardly
ever used.
2005-05-08 20:32:36 +00:00
martin
3d320fb96e Translate the new slip related messages to german. 2005-05-08 20:29:53 +00:00
christos
91876f6dac Apply patch from Mikhail Zakharov that enables slip based installation.
From: http://www.onlamp.com/pub/a/bsd/2005/05/05/hardware_rescue.html
2005-05-08 19:46:33 +00:00
lukem
5baba459c0 use /usr/sbin/postinstall instead of etc/postinstall from the extracted etc.tgz 2005-04-18 23:36:03 +00:00
jschauma
0351658cc8 Some improvements and fixes.
From Mirko Thiesen in private mail.
2005-04-09 17:24:43 +00:00
dsl
3650a70127 Allow the user to change the partition type from FFSv1 to FFSv2
Should fix install/29693
2005-03-14 21:37:43 +00:00
bouyer
3e8f0992c8 Integrate Xen to the i386 build process:
- Add xen devices to MAKEDEV
- Add Xen kernels to list of kernel to build
- Add INSTALL_XENU to the install kernels
- introduce the xbd disk devices to sysinst.

This will add 3 kernels to the i386 release:
XEN0 for use as a Xen domain0 kernel
XENU for use on a non-privileged domain
INSTALL_XENU to install NetBSD on a non-privileged domain virtual disk.
2005-03-11 20:55:10 +00:00
dsl
6fd109179e Use KB_ENF_FUN() from dev/wscons/wsksymdef.h to avoid having our own list
of the known keyboard mappings.
2005-03-09 20:59:09 +00:00
dsl
630725bdbc Put 'Delete ?' (not "yes or no") in box when we ask whether the user
want to keep or delete the dist files.
Stop the "type enter to continue" if the rmdir fails - may not be empty.
Report an error if the chroot() (for RUN_CHROOT) fails.
fflush log and script files before writing to them from a child.
2005-02-26 17:40:49 +00:00
dsl
b0d31e5def Remove target_prefix() from rmdir command used to remove the temporary
directory that ftp copied teh dist files into.  Command is running chroot().
2005-02-26 17:36:32 +00:00
dsl
d53c0d596e Put /bin/sh at top of list for root's shell.
Remove a global data item as well.
2005-02-20 20:54:52 +00:00
dsl
5fd32d4f19 Give all the space to / even when the BIOS can't quite read all of it.
Usually the unreadable part will be swap, but remove it from root even
if swap is not selected.
The user can always put it back on the next screen.
Saves sysinst allocating /usr when the bios geometry excludes the last
few MB of the disk (32 on one disk I have).
2005-02-20 20:42:36 +00:00
dsl
c2abea4a9e Move definition od SRCS into global Makefile.inc (crunchgen no longer needs
to determine the list of source files).
Add -DWSKBD to amd64 (probably should go into many others as well)
2005-02-19 17:00:38 +00:00
aymeric
425332b643 Correct a typo in a filename: s/fdstab/fstab/ 2005-02-12 15:06:59 +00:00
dsl
70af5e654b Add back short country names and put them into the config file.
Fixes PR install/29059
2005-01-28 23:02:09 +00:00
dsl
102f557a3b Ensure we only remove the size of /usr from that of / once.
Fixes PR install/28568
2005-01-21 17:02:40 +00:00
dsl
ea62f7c027 Use full country names when asking for keyboard type - thanks to Hubert for
finding them out and adding the comments to wsksymdef.h.
Make German always have KB_NODEAD set - IIRC Martin said that is needed.
Unfortunately this means we have our own list...
2005-01-20 22:15:46 +00:00
dsl
9146a4af0b Default to using 2k fragments (16k blocks) on filesystems that are >1GB.
Matches the defaults advertised in the newfs(8).
Perry keeps on asking me to do this :-)
2005-01-20 21:59:35 +00:00
lukem
46123551a0 Only support SMALLPROG_INET6 if ${USE_INET6} != "no".
Part of PR 28994.
2005-01-18 12:30:21 +00:00
snj
127531e055 We prefer "file system" over "filesystem". 2005-01-09 19:58:55 +00:00
snj
7921b65d89 Fix a typo: fileystem -> filesystem. 2005-01-09 06:30:08 +00:00
joff
68490c8820 Add TS7200 kernel for sysinst 2004-12-28 17:56:40 +00:00
hubertf
8e7f054fdb Fix typo, pointed out by César Catrián C. <ccatrian@eml.cc>
on tech-install@
2004-12-15 08:35:17 +00:00
dsl
8c170ab578 Stop md_pre_disklabel falling off its bottom. 2004-11-14 18:36:11 +00:00