bdisk/extra/pre-build.d/etc/initcpio/install/livecd

38 lines
855 B
Plaintext
Raw Permalink Normal View History

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
add_file "/etc/passwd"
add_file "/etc/shadow"
add_file "/etc/group"
add_file "/etc/gshadow"
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
2016-12-26 13:34:34 -05:00
# Normally, archiso does this for us. But we don't want to use the build.sh they provide, so we perform it in a more minimal version here.
if [ -f /root/pubkey.gpg ];
then
add_binary "/usr/bin/gpg"
mkdir -p "${BUILDROOT}${dest}"/gpg
gpg --homedir "${BUILDROOT}${dest}"/gpg --import /root/pubkey.gpg
fi
2014-12-19 14:13:30 -05:00
}
help()
{
cat <<HELPEOF
2016-12-26 13:34:34 -05:00
Mount a squashed flat-file directory with OverlayFS on /, add SSL support, and add GPG support (if needed) for BDisk.
2014-12-19 14:13:30 -05:00
HELPEOF
}