Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make default image 950MB instead of 1024MB so it actually fits on any "1GB" flash card. Make /root a 50MB partition so that you can persistently save things like ssh keys (added root to vnddirs). Fix -disk option in cfgflashrd. Fix error reporting for invocation of vnconfig -u when disk specified. Remove POOL_DEBUG from kernel config before compiling for speed (this option is only enabled during development cycles, delete this out of mkkern if you want -current kernels with POOL_DEBUG). Copy rc.shutdown as example to preserve tardirs on reboot. Mount source image rdonly with growimg, makes failure recovery easier.
- Loading branch information
Showing
9 changed files
with
49 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# $OpenBSD: rc.shutdown,v 1.7 2006/06/22 00:41:59 deraadt Exp $ | ||
# | ||
# If it exists, this script is run at system-shutdown by reboot(8), | ||
# halt(8). If the architecture supports keyboard requested halting, | ||
# it is also run by init(8) when such an event happens. | ||
# | ||
|
||
powerdown=NO # set to YES for powerdown | ||
|
||
# Uncomment tardirs if you want to compact dirs on shutdown | ||
# | ||
#tardirs="var" | ||
|
||
if [ ! -z "$tardirs" ]; then | ||
|
||
for i in $tardirs; do | ||
echo tardirs: compacting $i | ||
tar cf /flash/$i.tar -C /$i . | ||
done | ||
|
||
fi | ||
|
||
# | ||
# Your shell code goes here | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters