Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
Update/fix Makefile.depend for userland
test_diskread(): detect end of the diskDetect the end of the disk condition. This may happpen whendisk image is truncated and the reads are addressing blocks pastimage end.MFC after: 1 weekDi
test_diskread(): detect end of the diskDetect the end of the disk condition. This may happpen whendisk image is truncated and the reads are addressing blocks pastimage end.MFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D35432
show more ...
loader: zfs should support bootonce an nextbootbootonce feature is temporary, one time boot, activated by"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.By default, t
loader: zfs should support bootonce an nextbootbootonce feature is temporary, one time boot, activated by"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.By default, the bootonce setting is reset on attempt to boot and the nextboot will use previously active BE.By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE willbe set permanently active.bootonce dataset name is recorded in boot pool labels, bootenv area.in case of nextboot, the nextboot_enable boolean variable is recorded infreebsd:nvstore nvlist, also stored in boot pool label bootenv area.On boot, the loader will process /boot/nextboot.conf if nextboot_enableis "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.confprocessing on next boot.bootonce and nextboot features are usable in both UEFI and BIOS boot.To use bootonce/nextboot features, the boot loader needs to be updated on disk;if loader.efi is stored on ESP, then ESP needs to be updated andfor BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated(gpart or other tools).At this time, only lua loader is updated.Sponsored by: Netflix, Klara Inc.Differential Revision: https://reviews.freebsd.org/D25512
Fix pkgfs stat so it satisfies libsecurebootWe need a valid st_dev, st_ino and st_mtimeto correctly track which files have been verifiedand to update our notion of time.ve_utc_set(): ignore utc
Fix pkgfs stat so it satisfies libsecurebootWe need a valid st_dev, st_ino and st_mtimeto correctly track which files have been verifiedand to update our notion of time.ve_utc_set(): ignore utc if it would jump our current timeby more than VE_UTC_MAX_JUMP (20 years).Allow testing of install command via userboot.Need to fix its stat implementation too.bhyveload also needs stat fixed - due to change to userboot.hCall ve_error_get() from vectx_close() when hash is wrong.Track the names of files we have hashed into pcrFor the purposes of measured boot, it is importantto be able to reproduce the hash reflected inloader.ve.pcrso loader.ve.hashed provides a list of names in the order theywere added.Reviewed by: impMFC after: 1 weekSponsored by: Juniper NetworksDifferential Revision: https://reviews.freebsd.org//D24027
loader: userboot/test should accept more than one diskallow to specify multiple -d options, test -d disk1 -d disk2 ..
userboot/test should use PRIx64 as one would expect from prefix 0xTest is printing decimal value after prefix 0x.
Centralize several variables.MK_CTF, MK_SSP, MK_PROFILE, NO_PIC, and INTERNALLIB are always thesame, so set them in defs.mk. MAN= is common, so set it here too.This removes a lot of boring repeti
Centralize several variables.MK_CTF, MK_SSP, MK_PROFILE, NO_PIC, and INTERNALLIB are always thesame, so set them in defs.mk. MAN= is common, so set it here too.This removes a lot of boring repetition from the Makefiles that addedalmost no value.
Make putenv and getenv match the userland definition of thesefunctions, tweak man page and one variable that shouldn't be constanymore.Sponsored by: Netflix
Don't inherit CFLAGS. This a specialized test program, and can bebuilt with mostly default flags. Do so in anticipation of the rest ofstand not building with system headers.Sponsored by: Netflix
Undefine _STANDALONE since this is test code. This is unsastifying,but since we sadly only have one test, put this in as a stopgap.Sponsored by: Netflix
Mark the func pointer as __dead2. It looks up loader_main, whicheither aborts or exits, but never returns. Tag it as a non-returningfunction rather than supply a bogus return(0) at the end of main.
Mark the func pointer as __dead2. It looks up loader_main, whicheither aborts or exits, but never returns. Tag it as a non-returningfunction rather than supply a bogus return(0) at the end of main.CID: 1382885Sponsored by: Netflix
Move sys/boot to stand. Fix all references to new locationSponsored by: Netflix