working on the boot problem. also, documentation
This commit is contained in:
7
extra/pre-build.d/etc/initcpio/hooks/livecd
Normal file
7
extra/pre-build.d/etc/initcpio/hooks/livecd
Normal file
@@ -0,0 +1,7 @@
|
||||
# vim: set ft=sh:
|
||||
|
||||
run_cleanuphook () {
|
||||
msg ":: Adding SSL and SSH support..."
|
||||
|
||||
pkill -9 dropbear #kill SSH (in preparation for the live system starting ssh on port 22
|
||||
}
|
||||
29
extra/pre-build.d/etc/initcpio/install/livecd
Normal file
29
extra/pre-build.d/etc/initcpio/install/livecd
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
build()
|
||||
{
|
||||
add_module 'squashfs'
|
||||
add_module 'loop'
|
||||
add_module 'overlay'
|
||||
|
||||
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
|
||||
|
||||
add_runscript
|
||||
|
||||
}
|
||||
|
||||
help()
|
||||
{
|
||||
cat <<HELPEOF
|
||||
Mount a squashed flat-file directory with OverlayFS on /, add SSL support
|
||||
HELPEOF
|
||||
}
|
||||
Reference in New Issue
Block a user