aboutsummaryrefslogtreecommitdiff
path: root/release/picobsd/qemu
diff options
context:
space:
mode:
authorLuigi Rizzo <luigi@FreeBSD.org>2009-12-28 01:25:05 +0000
committerLuigi Rizzo <luigi@FreeBSD.org>2009-12-28 01:25:05 +0000
commit7ba682989746702d2874f3057c6eb735a4b13828 (patch)
treeec2ebdc07d6713e704fa35f815f569e6bd0f1696 /release/picobsd/qemu
parent996e65afcd5cb797a5a04b6763b71f5dc825f94b (diff)
downloadsrc-7ba682989746702d2874f3057c6eb735a4b13828.tar.gz
src-7ba682989746702d2874f3057c6eb735a4b13828.zip
make the memory filesystem larger, and add an example
on how to import files from the host
Notes
Notes: svn path=/head/; revision=201076
Diffstat (limited to 'release/picobsd/qemu')
-rw-r--r--release/picobsd/qemu/PICOBSD4
-rw-r--r--release/picobsd/qemu/config22
2 files changed, 23 insertions, 3 deletions
diff --git a/release/picobsd/qemu/PICOBSD b/release/picobsd/qemu/PICOBSD
index b3982cd01c12..837e902d7977 100644
--- a/release/picobsd/qemu/PICOBSD
+++ b/release/picobsd/qemu/PICOBSD
@@ -6,8 +6,8 @@
#
# Line starting with #PicoBSD contains PicoBSD build parameters
#marker def_sz init MFS_inodes floppy_inodes
-#PicoBSD 8000 init 8192 32768
-options MD_ROOT_SIZE=8000 # same as def_sz
+#PicoBSD 18000 init 8192 32768
+options MD_ROOT_SIZE=18000 # same as def_sz
hints "PICOBSD.hints"
diff --git a/release/picobsd/qemu/config b/release/picobsd/qemu/config
index af409a196f6e..88f1954d7ab7 100644
--- a/release/picobsd/qemu/config
+++ b/release/picobsd/qemu/config
@@ -3,4 +3,24 @@
# it should only contain variable definitions -- it is sourced
# by the shell much like rc.conf* files
-fd_size="4096"
+fd_size="8192"
+
+# To copy individual files you can use the function do_copyfiles_user
+# as below (find_progs locates the programs and their libraries,
+# then you manually copy them.
+#copy_files="
+#"
+do_copyfiles_user() {
+ local dst=$1 # the destination root
+ log "--- put the libraries in /usr/lib to avoid conflicts"
+ mkdir -p ${dst}/usr/lib
+ log "-- import dropbear from its build directory --"
+ find_progs -L / -P /usr/ports/security/dropbear/work/dropbear-0.52 \
+ dbclient dropbear
+ cp -p ${u_progs} ${dst}/bin
+ cp -p ${u_libs} ${dst}/usr/lib
+ log "--- also import ssh, scp and sshd ---"
+ find_progs -L / /usr/bin/ssh /usr/bin/scp /usr/sbin/sshd
+ cp -p ${u_progs} ${dst}/bin
+ cp -p ${u_libs} ${dst}/usr/lib
+}