2.4.3-dmcrypt.confd 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # /etc/conf.d/dmcrypt
  2. # For people who run dmcrypt on top of some other layer (like raid),
  3. # use rc_need to specify that requirement. See the runscript(8) man
  4. # page for more information.
  5. #--------------------
  6. # Instructions
  7. #--------------------
  8. # Note regarding the syntax of this file. This file is *almost* bash,
  9. # but each line is evaluated separately. Separate swaps/targets can be
  10. # specified. The init-script which reads this file assumes that a
  11. # swap= or target= line starts a new section, similar to lilo or grub
  12. # configuration.
  13. # Note when using gpg keys and /usr on a separate partition, you will
  14. # have to copy /usr/bin/gpg to /bin/gpg so that it will work properly
  15. # and ensure that gpg has been compiled statically.
  16. # See http://bugs.gentoo.org/90482 for more information.
  17. # Note that the init-script which reads this file detects whether your
  18. # partition is LUKS or not. No mkfs is run unless you specify a makefs
  19. # option.
  20. # Global options:
  21. #----------------
  22. # How long to wait for each timeout (in seconds).
  23. dmcrypt_key_timeout=1
  24. # Max number of checks to perform (see dmcrypt_key_timeout).
  25. #dmcrypt_max_timeout=300
  26. # Number of password retries.
  27. dmcrypt_retries=5
  28. # Arguments:
  29. #-----------
  30. # target=<name> == Mapping name for partition.
  31. # swap=<name> == Mapping name for swap partition.
  32. # source='<dev>' == Real device for partition.
  33. # Note: You can (and should) specify a tag like UUID
  34. # for blkid (see -t option). This is safer than using
  35. # the full path to the device.
  36. # key='</path/to/keyfile>[:<mode>]' == Fullpath from / or from inside removable media.
  37. # header='</path/to/header>' == Full path to detached LUKS header file.
  38. # remdev='<dev>' == Device that will be assigned to removable media.
  39. # gpg_options='<opts>' == Default are --quiet --decrypt
  40. # options='<opts>' == cryptsetup, for LUKS you can only use --readonly
  41. # loop_file='<file>' == Loopback file.
  42. # Note: If you omit $source, then a free loopback will
  43. # be looked up automatically.
  44. # pre_mount='cmds' == commands to execute before mounting partition.
  45. # post_mount='cmds' == commands to execute after mounting partition.
  46. # wait=5 == wait given amount of seconds for source or
  47. # detached header file appear.
  48. #-----------
  49. # Supported Modes
  50. # gpg == decrypt and pipe key into cryptsetup.
  51. # Note: new-line character must not be part of key.
  52. # Command to erase \n char: 'cat key | tr -d '\n' > cleanKey'
  53. #--------------------
  54. # dm-crypt examples
  55. #--------------------
  56. ## swap
  57. # Swap partitions. These should come first so that no keys make their
  58. # way into unencrypted swap.
  59. # If no options are given, they will default to: -c aes -h sha1 -d /dev/urandom
  60. # If no makefs is given then mkswap will be assumed
  61. #swap=crypt-swap
  62. #source='/dev/hda2'
  63. ## /home with passphrase
  64. #target=crypt-home
  65. #source='/dev/hda5'
  66. ## /home with regular keyfile
  67. #target=crypt-home
  68. #source='/dev/hda5'
  69. #key='/full/path/to/homekey'
  70. ## /home with regular keyfile and detached header
  71. #target=crypt-home
  72. #source='/dev/hda5'
  73. #key='/full/path/to/homekey'
  74. #header='/full/path/to/header/file'
  75. ## /home with gpg protected key
  76. #target=crypt-home
  77. #source='/dev/hda5'
  78. #key='/full/path/to/homekey:gpg'
  79. ## /home with regular keyfile on removable media(such as usb-stick)
  80. #target=crypt-home
  81. #source='/dev/hda5'
  82. #key='/full/path/to/homekey'
  83. #remdev='/dev/sda1'
  84. ## /home with gpg protected key on removable media(such as usb-stick)
  85. #target=crypt-home
  86. #source='/dev/hda5'
  87. #key='/full/path/to/homekey:gpg'
  88. #remdev='/dev/sda1'
  89. ## /tmp with regular keyfile
  90. #target=crypt-tmp
  91. #source='/dev/hda6'
  92. #key='/full/path/to/tmpkey'
  93. #pre_mount='/sbin/mkreiserfs -f -f ${dev}'
  94. #post_mount='chown root:root ${mount_point}; chmod 1777 ${mount_point}'
  95. ## Loopback file example
  96. #target='crypt-loop-home'
  97. #source='/dev/loop0'
  98. #loop_file='/mnt/crypt/home'
  99. # The file must be terminated by a newline. Or leave this comment last.