[pkg-cryptsetup-devel] Bug#563975: cryptsetup: passing of additional mkfs options in luksformat

Eduard Bloch blade at debian.org
Wed Jan 6 19:45:10 UTC 2010


Package: cryptsetup
Version: 2:1.1.0~rc2-1
Severity: wishlist
Tags: patch

Hello,

I would like to pass additional flags to the mkfs command (like --fast
to mkfs.ntfs) in the luksformat script. ATM it's not possible, the
attached patch does implement it.

Regards,
Eduard.


-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-2.6.32.toi root=UUID=b7a6aea2-9b9c-463f-af61-e72bfe194d3c ro resume=/dev/sda2 reboot=acpi

-- /etc/crypttab
# <target name>	<source device>		<key file>	<options>

-- /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
#sys 		/sys		sysfs	defaults	0	0
UUID="b7a6aea2-9b9c-463f-af61-e72bfe194d3c"       /               ext4     defaults,errors=remount-ro 0       1
/dev/sda2       none            swap    sw              0       0
/dev/cdrom        /media/cdrom0   udf,iso9660 ro,user,noauto  0       0
#/dev/cdrom1        /media/cdrom1   udf,iso9660 ro,user,noauto  0       0
#/chroot/a/home	/home		none	bind

#/dev/hdc1	/mnt/x	auto	user,umask=000,showexec,codepage=850,utf8=yes	0	0
#UUID="AA6875756875415D"	/mnt/d	ntfs-3g,vfat  user,showexec,umask=000,codepage=850,utf8=yes	0	0
#/dev/sda8 /mnt/data    ext3     defaults,errors=remount-ro 0       1
#UUID="10181A191819FE82" /data1    ntfs-3g     locale=de_DE.UTF-8,allow_other
#UUID="8C482AE3482ACBB0" /data2    ntfs-3g     locale=de_DE.UTF-8,allow_other
UUID="501A21471A212C02" /mnt/c ntfs-3g utf8,user,umask=000 0 0

#/dev/sda7	/mnt/d	vfat  user,showexec,umask=000,codepage=850,iocharset=iso8859-1	0	0
#/dev/sda7	/mnt/e	vfat  user,showexec,umask=000,codepage=850,utf8=yes	0	0
#UUID="4612-AFD4"  /mnt/x	vfat,ntfs-3g  user,showexec,umask=000,codepage=850,utf8=yes	0	0
#/dev/hdf1	/mnt/z	vfat  user,showexec,umask=000,codepage=850,iocharset=iso8859-1	0	0
#/dev/fd0	/mnt/floppy	auto	user,noexec,noauto	0	0
#//qubeck/e /mnt/q smbfs username=inet,password=fuji,fmask=777,dmask=777
#isdn:/data/debian-mirror  /mnt/isdn nfs
# /tmp/foobar /mnt/misc asdf defaults 0 0
#/mnt/e/pub.private /home/ftp/misc  none bind 0 0
#/mnt/e/incoming /home/ftp/incoming  none bind 0 0
#/mnt/e/pub /home/ftp/pub  none bind 0 0
usbdevfs /proc/bus/usb usbfs
none /var/cache/pbuilder/build/ tmpfs defaults

#/dev/sdb6       /mnt/sdb6               ext3     defaults,noauto 0       1
#/dev/sdb5       /mnt/sdb5               ntfs-3g     defaults	0       1

#/dev/mapper/bigfs	/mnt/cfs	ntfs-3g	locale=de_DE.UTF-8,allow_other,noauto

-- lsmod
Module                  Size  Used by
iptable_filter          1490  0 
iptable_nat             3838  1 
nf_nat                 14931  1 iptable_nat
nf_conntrack_ipv4      10699  3 iptable_nat,nf_nat
nf_defrag_ipv4          1155  1 nf_conntrack_ipv4
ip_tables              15932  2 iptable_filter,iptable_nat
x_tables               15514  2 iptable_nat,ip_tables
sha256_generic          9757  0 
cryptd                  5948  0 
aes_x86_64              7420  6 
aes_generic            26178  1 aes_x86_64
cbc                     2699  3 
radeon                556097  2 
ttm                    36865  1 radeon
drm_kms_helper         21883  1 radeon
drm                   151732  5 radeon,ttm,drm_kms_helper
i2c_algo_bit            4839  1 radeon
uinput                  7833  0 
binfmt_misc             6911  1 
ppdev                   6230  0 
lp                      8460  0 
parport                29955  2 ppdev,lp
sco                     8408  2 
bridge                 46557  0 
stp                     1552  1 bridge
llc                     3625  2 bridge,stp
bnep                   10170  2 
rfcomm                 34507  1 
l2cap                  31655  6 bnep,rfcomm
bluetooth              49849  6 sco,bnep,rfcomm,l2cap
rfkill                 14479  2 bluetooth
nfsd                  285748  2 
lockd                  65244  1 nfsd
nfs_acl                 2335  1 nfsd
auth_rpcgss            39648  1 nfsd
sunrpc                189447  8 nfsd,lockd,nfs_acl,auth_rpcgss
autofs4                23835  0 
cpufreq_conservative     6128  0 
cpufreq_stats           3849  0 
cpufreq_powersave        966  0 
cpufreq_userspace       2056  0 
ipv6                  262149  47 
dm_crypt               11278  3 
dm_snapshot            20688  0 
vboxnetadp              4529  0 
vboxnetflt             11343  0 
vboxdrv              1722868  2 vboxnetadp,vboxnetflt
w83627ehf              20902  0 
k8temp                  3379  0 
hwmon_vid               2724  1 w83627ehf
i2c_nforce2             5488  0 
fuse                   61381  9 
nf_conntrack_irc        3427  0 
nf_conntrack_ftp        5908  0 
nf_conntrack           53089  5 iptable_nat,nf_nat,nf_conntrack_ipv4,nf_conntrack_irc,nf_conntrack_ftp
powernow_k8            11886  0 
psmouse                40125  0 
ide_cd_mod             26821  0 
ves1x93                 5601  1 
snd_hda_codec_realtek   246933  1 
snd_hda_intel          19648  4 
snd_hda_codec          52304  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6116  1 snd_hda_codec
dvb_ttpci              95062  0 
snd_pcm_oss            38115  0 
snd_mixer_oss          16915  1 snd_pcm_oss
dvb_core               88031  1 dvb_ttpci
snd_pcm                69262  4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
saa7146_vv             43883  1 dvb_ttpci
snd_seq_dummy           1375  0 
videodev               35483  1 saa7146_vv
v4l1_compat            15386  1 videodev
v4l2_compat_ioctl32     9873  1 videodev
saa7146                14038  2 dvb_ttpci,saa7146_vv
snd_seq_oss            27743  0 
snd_seq_midi            4976  0 
snd_rawmidi            18100  1 snd_seq_midi
videobuf_dma_sg         9003  1 saa7146_vv
snd_seq_midi_event      5380  2 snd_seq_oss,snd_seq_midi
videobuf_core          13529  2 saa7146_vv,videobuf_dma_sg
snd_seq                48222  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              18415  3 snd_pcm,snd_seq
ttpci_eeprom            1608  1 dvb_ttpci
snd_seq_device          5085  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
rtc_cmos                8808  0 
snd                    53949  18 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               5967  1 snd
pcspkr                  1827  0 
evdev                   8729  13 
joydev                  9640  0 
rtc_core               13413  1 rtc_cmos
amd64_edac_mod         17020  0 
snd_page_alloc          6969  2 snd_hda_intel,snd_pcm
i2c_core               17625  8 radeon,drm,i2c_algo_bit,i2c_nforce2,ves1x93,dvb_ttpci,videodev,ttpci_eeprom
processor              35430  1 powernow_k8
edac_mce_amd            6721  1 amd64_edac_mod
button                  4810  0 
rtc_lib                 1810  1 rtc_core
hid_microsoft           3035  0 
usbhid                 28009  0 
sr_mod                 14851  0 
cdrom                  35138  2 ide_cd_mod,sr_mod
sg                     27707  12 
ohci1394               27948  0 
ata_generic             3111  0 
pata_acpi               3288  0 
ohci_hcd               21261  0 
ehci_hcd               34346  0 
8139too                19904  0 
8139cp                 18020  0 
pata_atiixp             3633  1 
ieee1394               71390  1 ohci1394
usbcore               138757  4 usbhid,ohci_hcd,ehci_hcd
r8169                  35774  0 
mii                     3706  3 8139too,8139cp,r8169
thermal                12826  0 
fan                     3378  0 
dm_mirror              12204  0 
dm_region_hash          7091  1 dm_mirror
dm_log                  8408  2 dm_mirror,dm_region_hash
dm_mod                 61438  10 dm_crypt,dm_snapshot,dm_mirror,dm_log


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32.toi (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cryptsetup depends on:
ii  dmsetup                      2:1.02.39-1 The Linux Kernel Device Mapper use
ii  libc6                        2.10.2-3    Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1           2:1.02.39-1 The Linux Kernel Device Mapper use
ii  libpopt0                     1.15-1      lib for parsing cmdline parameters
ii  libuuid1                     2.16.2-0    Universally Unique ID library

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
ii  dosfstools                    3.0.7-1    utilities for making and checking 
ii  initramfs-tools [linux-initra 0.93.4     tools for generating an initramfs
ii  udev                          149-2      /dev/ and hotplug management daemo

-- no debconf information

-- 
Wilkommen bei Slash-Boing-Heise ...
anna_k, anna.katzner at gmx.net (466 Beiträge seit 18.4.00)	
Bewertung dieses Beitrags:	[Beitragsbewertung: 87%] 	
	

... dem Internet-Magazin der etwas anderen Art.

In Zukunft werden wir Sie tagesaktuell auch über folgende Themen
informieren:

 -- SuicideGirls --- Schlampen oder Schätzchen?
 -- Hamster im PC: Grillgut oder Superconductor?
 -- Pappraketen und Roboter, die Kinder fressen.
 -- Windows Vista im Wohnzimmer: Welches "Theme" ist das richtige für
mich?
 -- Die Bundescomputerliga: Steigt HP ab? Und: Alles über das
Win/Mac-Pokalspiel.
 --PC-Tuning extrem: "Gleisch hasdu meine Lüfter in die Fresse,
Alder!"
 -- HURD oder JOGHURD - Milchspeisen für Admins.
 -- Welche Unterhose trägt Cory Doctorow heute (und warum?).
 -- Immer nur "Sendmail" nervt auch: Warum nicht einfach mal Mail
empfangen?
 -- Schnurers Frisurentips (Mo-Fr und Sa-So auf c't-TV) (wird  Do-Mo
und Di-Mi wiederholt)
 -- "Mir zwickts am Kernel" (Eine ehrliche Fragestunde mit dem Dr.
Sommer-Team)
 -- RAM gegen RAM - das ulimative Shootout: Wer fliegt weiter? (mit
Steinschleudern)
 -- Deutschlands Geilste Festplatten: Wo Sie am besten fscken können.

Und noch vieles, vieles mehr!

Bookmarken Sie jetzt, um in den vollen Genuss unseres Bookmarks zu
kommen!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: luksformat.patch
Type: text/x-diff
Size: 1064 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cryptsetup-devel/attachments/20100106/e2d152dc/attachment.patch>


More information about the pkg-cryptsetup-devel mailing list