git.annexia.org
/
febootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to previous commit: Properly specify newc cpio format.
[febootstrap.git]
/
examples
/
minimal-filesystem.sh
diff --git
a/examples/minimal-filesystem.sh
b/examples/minimal-filesystem.sh
index
678d612
..
497d209
100755
(executable)
--- a/
examples/minimal-filesystem.sh
+++ b/
examples/minimal-filesystem.sh
@@
-35,15
+35,19
@@
echo -n "After minimization: "; du -sh minimal
# Create the /init which is just a simple script to give users an
# interactive shell.
# Create the /init which is just a simple script to give users an
# interactive shell.
-( cd minimal && cat > init <<'__EOF__'
+create_init ()
+{
+ cat > /init <<'__EOF__'
#!/bin/sh
echo; echo; echo
echo "Welcome to the minimal filesystem example"
echo; echo; echo
/bin/bash -i
__EOF__
#!/bin/sh
echo; echo; echo
echo "Welcome to the minimal filesystem example"
echo; echo; echo
/bin/bash -i
__EOF__
-chmod +x init
-)
+ chmod +x /init
+}
+export -f create_init
+../febootstrap-run ./minimal -- bash -c create_init
# Convert the filesystem to an initrd image.
# Convert the filesystem to an initrd image.