User Tools

Site Tools


kigen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
kigen [2014/11/24 01:14]
0.0.0.0 created
kigen [2014/11/24 02:15] (current)
ben
Line 10: Line 10:
  
 ===== Configuration ===== ===== Configuration =====
-{{File|/etc/kigen/initramfs/default.conf|<code>0@@</code>}}+{{File|/etc/kigen/initramfs/default.conf|''0@@''}}
  
 ===== Building the initramfs ===== ===== Building the initramfs =====
-{{Root|<source lang="bash">+{{Root|<code bash>
 kigen i --rootpasswd=changgeme kigen i --rootpasswd=changgeme
-</source>}}+</code>}}
  
 ===== Tweaks ===== ===== Tweaks =====
 First, extract the initramfs so we can make changes to it. First, extract the initramfs so we can make changes to it.
-{{Root|<source lang="bash">+{{Root|<code bash>
 kigen t --extract=/boot/initramfs-foo kigen t --extract=/boot/initramfs-foo
-</source>}} +</code>}} 
-{{Note|<code>1@@</code>}}+{{Note|''1@@''}}
  
 The dropbox provided by Sabayon is linked to some libraries in /usr/lib which don't get picked up by kigen's initramfs. Copy these into the initramfs manually. The dropbox provided by Sabayon is linked to some libraries in /usr/lib which don't get picked up by kigen's initramfs. Copy these into the initramfs manually.
-{{Root|<source lang="bash">+{{Root|<code bash>
 mkdir /var/tmp/kigen/extracted-initramfs/usr/lib mkdir /var/tmp/kigen/extracted-initramfs/usr/lib
 cp /usr/lib/libtom{math,crypt}.so.0 /var/tmp/kigen/extracted-initramfs/usr/lib/ cp /usr/lib/libtom{math,crypt}.so.0 /var/tmp/kigen/extracted-initramfs/usr/lib/
-</source>}}}+</code>}}}
  
 Dropbear also needs some keys created, which won't get done automatically. Dropbear also needs some keys created, which won't get done automatically.
-{{Root|<source lang="bash">+{{Root|<code bash>
 mkdir /var/tmp/kigen/extracted-initramfs/etc/dropbear mkdir /var/tmp/kigen/extracted-initramfs/etc/dropbear
 dropbearkey -t dss -f /var/tmp/kigen/extracted-initramfs/etc/dropbear/dropbear_host_dss_key dropbearkey -t dss -f /var/tmp/kigen/extracted-initramfs/etc/dropbear/dropbear_host_dss_key
 dropbearkey -t rsa -f /var/tmp/kigen/extracted-initramfs/etc/dropbear/dropbear_host_rsa_key dropbearkey -t rsa -f /var/tmp/kigen/extracted-initramfs/etc/dropbear/dropbear_host_rsa_key
-</source>}}+</code>}}
  
 Rebuild the initramfs with the new changes Rebuild the initramfs with the new changes
-{{Root|<source lang="bash">+{{Root|<code bash>
 kigen t --compress=/var/tmp/kigen/extracted-initramfs/ --into=/boot/initramfs-foo kigen t --compress=/var/tmp/kigen/extracted-initramfs/ --into=/boot/initramfs-foo
-</source>}}+</code>}}
  
 ===== Usage ===== ===== Usage =====
-The kernel line in grub needs to be amended with the networking and dropbear instructions. Append the following to the defaults in <tt>/etc/default/grub</tt> or <tt>/etc/default-sabayon-grub</tt>>+The kernel line in grub needs to be amended with the networking and dropbear instructions. Append the following to the defaults in ''/etc/default/grub'' or ''/etc/default-sabayon-grub''>
  
-<code>2@@</code>+''2@@''
  
 Update the initrd line as well if necessary. Update the initrd line as well if necessary.
Line 51: Line 51:
 Finally, reboot, and try SSHing into the host. Run the following command when prompted, to unlock the root filesystem and continue the boot process. Finally, reboot, and try SSHing into the host. Run the following command when prompted, to unlock the root filesystem and continue the boot process.
  
-{{Root|<source lang="bash">+{{Root|<code bash>
   - Replace /dev/sda4 below with the encrypted root partition   - Replace /dev/sda4 below with the encrypted root partition
 ./root-luks.sh /dev/sda4 ./root-luks.sh /dev/sda4
-</source>}}+</code>}}
kigen.1416791659.txt.gz · Last modified: 2014/11/24 01:14 by 0.0.0.0