summaryrefslogtreecommitdiff
path: root/usr.sbin/installboot/util.c
AgeCommit message (Collapse)Author
2015-11-04fix a memory leak in multiple error pathsJonathan Gray
ok krw@
2015-10-19Nuke unused variable.Kenneth R Westerback
2015-10-14Backout last. Breaks sparc64, amoung other dubiousness.Kenneth R Westerback
requested by deraadt@
2015-10-12Check that the disk specified on the command line is the disk thatKenneth R Westerback
files are copied to. Error out with 'cross-device install' if not. ok millert@, ok deraadt@ & jsing@ for previous version
2015-10-08Refactor fileprefix() and filecopy() to use warn() instead of err()Kenneth R Westerback
to display error message, and to return error indications (NULL and -1 respectively). Use the error indications in write_efisystem() to unwind in the face of more error conditions. In other cases just exit(1) to emulation current behaviour. ok deraadt@
2015-10-07Add initial support for installing UEFI boot files to a GTP EFI SystemKenneth R Westerback
Partition. Further work to be done in-tree. ok deraadt@
2015-01-16first batch of cleanup to programs based upon the namespace cleanupsTheo de Raadt
in net/pfvar.h sys/proc.h sys/ucred.h arpa/nameser.h change to PATH_MAX, reduce use of MIN() and MAX(), HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc etc ok millert guenther, some review by doug
2014-06-09Change the installboot file copying process so that it carefullyJoel Sing
overwrites the existing file, before truncating it to the final length. This means that we will keep the same inode and potentially retain the same disk data block allocation between runs. This will aid users who multiboot since it makes it less likely that the PBR will change, although as before, there is no guarantee. Obviously if the second stage boot loader grows or shrinks then the PBR will change regardless.
2014-01-19When copying files do it in 512 byte blocks so that we're less likely toJoel Sing
hit file system allocation issues on install media. Requested by deraadt@
2014-01-18Make installboot(8) easier to use - copy the second stage boot loader toJoel Sing
the default location used by the given architecture. This eliminates the need to copy it over manually prior to running installboot.
2014-01-18Add a -r flag that allows for the mount point of the root filesystem to beJoel Sing
specified. This is primarily for use by the installer and defaults to /.