Changes required to build CryptoNAS with Debian Live on my system, Debian 4.0r3.

This should be "good enough to play with", but see
"80-cn-run-config-script.sh".

*The build works
*The image should boot OK
*Haven't begun work on the validation scripts or hardening
*The image currently uses a DHCP-assigned address
*If you have a good idea of the best way to add separation of local/default settings the way we were doing with etc-defaults.d, etc-local.d, and so on, send me an email so we can discuss it.
This commit is contained in:
frisco 2008-06-10 02:36:38 +00:00
parent dbc620b26f
commit 652c10720d
10 changed files with 198 additions and 29 deletions

View file

@ -0,0 +1,32 @@
#!/bin/sh
##run /usr/lib/cryptobox-cd/configure-cryptobox.sh
##The contents of this script are commented out because this part
##isn't yet working. Running the script AFTER startup is complete
## seems to result in a working CryptoNAS, but I haven't yet
## made the changes necessary to get "configure-cryptobox.sh"
## to run in the initramfs context.
##
## To get an NAS "good enough to play with", uncomment everything with
## a single '#' after this point and run it once you get to the root
## prompt (use "sudo -s" to get to the root prompt).
##
echo "Boot-time configuration not implemented; run"
echo "/usr/lib/cryptobox-cd/configure-cryptobox.sh as root"
#echo "Configuring the CryptoNAS live system..."
##if we're doing a release version, call it with "normal, then secure"
##disable for now to isolate smbd/nmbd other problems
#/usr/lib/cryptobox-cd/configure-cryptobox.sh normal
## call it again with argument "secure" if we're building a release
#/sbin/telinit 3
#/etc/init.d/cryptobox-server restart
#/etc/init.d/samba restart

View file

@ -63,9 +63,11 @@ function configure_normal()
############ webdav ############
#TODO: add apache2 packages; configure port; add webdav link in web frontend
sed -i 's/^NO_START=.*$/NO_START=0/' /etc/default/apache2
cp /usr/share/doc/cryptobox-server/event-scripts/apache2_dav /etc/cryptobox-server/events.d/apache2_dav
chmod +x /etc/cryptobox-server/events.d/apache2_dav
#This breaks the build until apache2 is integrated into the package list
# sed -i 's/^NO_START=.*$/NO_START=0/' /etc/default/apache2
# cp /usr/share/doc/cryptobox-server/event-scripts/apache2_dav /etc/cryptobox-server/events.d/apache2_dav
# chmod +x /etc/cryptobox-server/events.d/apache2_dav
########### boot up ###########
# turn off creation of "/etc/nologin" (read-only fs)