From 8c5c6e9b5fa035e3a973736440f05c3cb93f8cfc Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 8 Jul 2010 19:43:27 -0300 Subject: adicionando here-documents e versao nova do kernel na instalacao. --- install.mdwn | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/install.mdwn b/install.mdwn index 6fbf2ff..728879e 100644 --- a/install.mdwn +++ b/install.mdwn @@ -86,14 +86,18 @@ Configura O `/etc/crypttab` deve conter (substitua `/dev/sda1` pelo seu valor correspondente para `$device`): + cat > /etc/crypttab <<-EOF # root /dev/mapper/vg-root none luks,cipher=aes-cbc-essiv:sha256 cswap /dev/sda1 /dev/random swap,cipher=aes-cbc-essiv:sha256 + EOF E o `/etc/fstab` deve conter: + cat > /etc/fstab <<-EOF /dev/mapper/cswap none swap sw 0 0 /dev/mapper/root / ext3 defaults,errors=remount-ro 0 1 + EOF Partida ------- @@ -112,13 +116,13 @@ Conte title Servidor (hd0) root (hd0,1) - kernel /vmlinuz-2.6.26-1-vserver-amd64 root=/dev/mapper/root ro quiet rootdelay=10 - initrd /initrd.img-2.6.26-1-vserver-amd64 + kernel /vmlinuz-2.6.26-2-vserver-amd64 root=/dev/mapper/root ro quiet rootdelay=10 + initrd /initrd.img-2.6.26-2-vserver-amd64 title Servidor (hd0) (single) root (hd0,1) - kernel /vmlinuz-2.6.26-1-vserver-amd64 root=/dev/mapper/root ro single rootdelay=10 - initrd /initrd.img-2.6.26-1-vserver-amd64 + kernel /vmlinuz-2.6.26-2-vserver-amd64 root=/dev/mapper/root ro single rootdelay=10 + initrd /initrd.img-2.6.26-2-vserver-amd64 Note que a opção rootdelay é importante no caso de sistemas contidos dentro de volumes USB, já que o kernel demora alguns instantes para detectar tais volumes. Detalhes a respeito em -- cgit v1.2.3