-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NanoBSD cleanup #64
base: main
Are you sure you want to change the base?
NanoBSD cleanup #64
Conversation
tools/tools/nanobsd/defaults.sh
Outdated
CONF_WORLD=' | ||
WITHOUT_LIB32=true | ||
WITHOUT_TESTS=true | ||
WITHOUT_DEBUG_FILES=t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use true
all the way.
MODULES_OVERRIDE=netgraph rc4 | ||
BOOT_PXELDR_PROBE_KEYBOARD=1 | ||
BOOT_PXELDR_ALWAYS_SERIAL=1 | ||
BOOT_COMCONSOLE_SPEED=9600 | ||
$CONF_WORLD | ||
' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double quote instead of single.
cust_comconsole() | ||
( | ||
# Disable getty on syscons devices | ||
sed -i "" -e '/^ttyv[3-8]/s/\tonifexists/\toff\ \ \ \ \ \ \ /' ${NANO_WORLDDIR}/etc/ttys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove spaces
ln -s ld-elf.so.1 ld-elf32.so.1 | ||
fi | ||
# Disable getty on serial consoles | ||
sed -i "" -e '/^ttyu[1-3]/s/\tonifconsole/\toff\ \ \ \ \ \ \ \ /' ${NANO_WORLDDIR}/etc/ttys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove spaces
#ifconfig_fxp0="AUTO" | ||
#sshd_enable="YES" | ||
EOF | ||
cat > etc/fstab <<- EOF |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove spaces
# makefs converts labels to uppercase anyways | ||
BIGLABEL=$(toUpper "${NANO_LABEL}") | ||
cat > etc/fstab <<- EOF | ||
/dev/iso9660/${BIGLABEL} / cd9660 ro,noatime 0 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove spaces
|
227bbd4
to
ee6ee79
Compare
Remove unused subroutines, clean up the code.
TODO: shellcheck
TODO: Revert the fstab spacing (excessive, no need to match mount -p)
NOTE that this commit will probably be discarded. TODO: Remove extra spaces
This brings back the output sizes of NanoBSD images, make it a global default per @imp's recommendation. Adjust other scripts that used to override the CONF_WORLD environment variable, so that the default value is appended.
The README promises a DHCP server based on the dnsmasq package. Actually install the dnsmasq package.
Add the base files that facilitate NanoBSD's maintenance.
Otherwise the instructions in the article [^1] will fail due to a lack of space. [^1]: https://docs.freebsd.org/en/articles/nanobsd/
Missing: - Overlay Files from base - Cleanup common.conf - Cleanup test.sh Test?
2d3ab5e
to
c730682
Compare
c730682
to
597f37b
Compare
Brief NanoBSD cleanup, allows for building according to the respective README files and the NanoBSD article.