Create LXC Container as usual, but do not start it yet.
# Install NFS-Kernel on Host
apt install nfs-kernel-server| #!/bin.bash | |
| # stigok 22-02-2018 | |
| KEYDIR=/etc/initcpio/keys | |
| function help { | |
| cat <<EOF | |
| This hook will embed decryption keys for the encrypted root device into | |
| initramfs to automatically mount the root partition after a successful | |
| decryption of the boot partition. |
| import BaseHTTPServer | |
| import SimpleHTTPServer | |
| import socket | |
| class HTTPServer6(BaseHTTPServer.HTTPServer): | |
| address_family = socket.AF_INET6 | |
| if __name__ == '__main__': |
| #include <stdio.h> | |
| void DumpHex(const void* data, size_t size) { | |
| char ascii[17]; | |
| size_t i, j; | |
| ascii[16] = '\0'; | |
| for (i = 0; i < size; ++i) { | |
| printf("%02X ", ((unsigned char*)data)[i]); | |
| if (((unsigned char*)data)[i] >= ' ' && ((unsigned char*)data)[i] <= '~') { | |
| ascii[i % 16] = ((unsigned char*)data)[i]; |