2014-12-19 14:13:30 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
build()
|
|
|
|
{
|
|
|
|
add_module 'squashfs'
|
|
|
|
add_module 'loop'
|
2015-01-30 20:38:42 -05:00
|
|
|
add_module 'overlay'
|
2014-12-19 14:13:30 -05:00
|
|
|
|
2016-12-20 16:57:31 -05:00
|
|
|
add_file "/etc/passwd"
|
|
|
|
add_file "/etc/shadow"
|
|
|
|
add_file "/etc/group"
|
|
|
|
add_file "/etc/gshadow"
|
|
|
|
|
2016-12-13 23:43:53 -05:00
|
|
|
add_binary "/usr/bin/sed"
|
|
|
|
add_binary "/usr/bin/pkill"
|
|
|
|
add_binary "/usr/bin/curl"
|
|
|
|
add_full_dir /etc/ssl
|
|
|
|
add_full_dir /etc/ca-certificates
|
2014-12-19 14:13:30 -05:00
|
|
|
|
|
|
|
add_runscript
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
help()
|
|
|
|
{
|
|
|
|
cat <<HELPEOF
|
2016-12-13 23:43:53 -05:00
|
|
|
Mount a squashed flat-file directory with OverlayFS on /, add SSL support
|
2014-12-19 14:13:30 -05:00
|
|
|
HELPEOF
|
|
|
|
}
|