Skip to content
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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

NanoBSD cleanup #64

wants to merge 15 commits into from

Conversation

jlduran
Copy link
Owner

@jlduran jlduran commented Jan 4, 2024

Brief NanoBSD cleanup, allows for building according to the respective README files and the NanoBSD article.

@jlduran jlduran self-assigned this Jan 4, 2024
CONF_WORLD='
WITHOUT_LIB32=true
WITHOUT_TESTS=true
WITHOUT_DEBUG_FILES=t
Copy link
Owner Author

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
'
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove spaces

@jlduran
Copy link
Owner Author

jlduran commented Jan 4, 2024

  • Add a trap when building ports
  • Add an /etc/rc.conf to dhcpd
  • Documentation

Remove unused subroutines, clean up the code.
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?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant