diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2016-07-04 18:33:31 -0300 | 
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2016-07-04 18:33:31 -0300 | 
| commit | a7e6e636ed0bf6ca1900c066728427b3e043585e (patch) | |
| tree | 4417dc068178b1971c25cdab344b2f6203d37157 | |
| parent | 66934f65a4f057f49ab7c793f0ec78530c0c237e (diff) | |
| download | bootless-a7e6e636ed0bf6ca1900c066728427b3e043585e.tar.gz bootless-a7e6e636ed0bf6ca1900c066728427b3e043585e.tar.bz2 | |
Adds Debian Jessie examples
| -rw-r--r-- | templates/custom.cfg | 42 | 
1 files changed, 42 insertions, 0 deletions
| diff --git a/templates/custom.cfg b/templates/custom.cfg index 87de184..ffb1401 100644 --- a/templates/custom.cfg +++ b/templates/custom.cfg @@ -24,3 +24,45 @@ menuentry 'Example: Darkstar FDE' {    set     version=3.16.0-4-amd64    bootfde ${volume} ${version}  } + +# +# Example: Debian Jessie default whole encrypted install with preloaded images. +# +menuentry 'Custom: Jessie with pre-loaded images' { +  set     volume=UUID=00000000-0000-0000-0000-000000000000 +  set     version=3.16.0-4-amd64 +  set     target=sda5_crypt +  set     rootfs=jessie--vg-root +  set     distro=debian +  bootimg ${volume} ${version} ${target} ${rootfs} ${distro} +} + +# +# Example: Debian Jessie default whole encrypted install with Full Disk Encryption. +# +menuentry 'Custom: Jessie with Full Disk Encryption' { +  set     volume=00000000000000000000000000000000 +  set     uuid=00000000-0000-0000-0000-000000000000 +  set     version=3.16.0-4-amd64 +  set     target=sda5_crypt +  set     rootfs=jessie--vg-root + +  # Loads luks module you can access kernel and initrd from +  # the inside your encrypted OS! +  insmod luks + +  # This opens the encrypted volume /dev/mapper/darkstar-root +  # and sets it as the root in the grub shell. +  cryptomount -u ${volume} + +  # Load the LVM module just after loading the encrypted volume +  # so Grub can detect volumes that are inside it. +  insmod lvm +  set         root=lvm/${rootfs} + +  # This loads the kernel and initramfs +  echo        "Loading ${volume}..." +  linux       /boot/vmlinuz-${version} root=/dev/mapper/${rootfs} cryptopts=target=${target},source=UUID=${uuid} ro quiet +  echo        'Loading initial ramdisk ...' +  initrd      /boot/initrd.img-${version} +} | 
