summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2010-07-08 19:43:27 -0300
committerdrebs <drebs@riseup.net>2010-07-08 19:43:27 -0300
commit8c5c6e9b5fa035e3a973736440f05c3cb93f8cfc (patch)
tree3f4fc9c4b9264444f8b6627ed61744a7041c22d0
parente6bb53aeadce7cd9ff45e127dad9a9f36af81813 (diff)
downloadpadrao-8c5c6e9b5fa035e3a973736440f05c3cb93f8cfc.tar.gz
padrao-8c5c6e9b5fa035e3a973736440f05c3cb93f8cfc.tar.bz2
adicionando here-documents e versao nova do kernel na instalacao.
-rw-r--r--install.mdwn12
1 files 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 inicial
O `/etc/crypttab` deve conter (substitua `/dev/sda1` pelo seu valor correspondente para `$device`):
+ cat > /etc/crypttab <<-EOF
# <target name> <source device> <key file> <options>
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údo do `/boot/grub/menu.lst` (substitua de acordo com os valores de `$arch`
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