Bug 118594 - Autoyast doesn't create encrypted filesystem
Summary: Autoyast doesn't create encrypted filesystem
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: AutoYaST (show other bugs)
Version: RC 1
Hardware: x86 SUSE Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Uwe Gansert
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-23 15:43 UTC by Karsten Kuenne
Modified: 2005-09-30 07:56 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Kuenne 2005-09-23 15:43:07 UTC
I have the following lines in my autoyast profile in order to create an 
encrypted partition: 
 
          <partition> 
            <crypt>twofish256</crypt> 
            <crypt_key>abc12345678901234567890</crypt_key> 
            <filesystem config:type="symbol">xfs</filesystem> 
            <format config:type="boolean">true</format> 
            <loop_fs config:type="boolean">true</loop_fs> 
            <crypt_fs config:type="boolean">true</crypt_fs> 
            <mount>/home</mount> 
            <partition_id config:type="integer">131</partition_id> 
            <size>max</size> 
          </partition> 
 
But after the installation I always end up with a normal unencrypted 
filesystem. With an interactive installation this works fine and it also 
worked fine in SUSE 9.3. I also tried to change twofish256 to twofish but the 
result was the same. Following are some lines from the y2log in the hope they 
are useful: 
 
.... 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1141 
working on partition $["crypt":"twofish256", "crypt_fs":true, 
"crypt_key":"abc12345678901234567890", "cylinders":1, "filesystem":`xfs, 
"format":true, "fsid":131, "loop_fs":true, "mount":"/home", 
"partition_id":131, "size":0] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1144 start: 
gap section  $["added":[[0, 5], [1, 6], [2, 7]], "created":1, 
"cylinders":5787, "end":7295, "extended":true, "orig_cyl":7296, 
"size":60011642880, "sizepct":100, "start":0] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1161 number 
of primaries requested: 0 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1168 number 
of created primaries: 0 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1266 
normalize_gaps: gap $["cyl_size":8225280, "disk_cyl":7296, "ext_pnr":[9, 10, 
11, 12, 13, 14, 15], "extended_possible":true, "free_pnr":[2, 3, 4], "gap":
[$["added":[[0, 5], [1, 6], [2, 7], [3, 8]], "created":1, "cylinders":5786, 
"end":7295, "extended":true, "orig_cyl":7296, "size":60011642880, 
"sizepct":100, "start":0]], "max_primary":4, "procpart":4, "sum":60011642880] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1271 gap 
section $["added":[[0, 5], [1, 6], [2, 7], [3, 8]], "created":1, 
"cylinders":5786, "end":7295, "extended":true, "orig_cyl":7296, 
"size":60011642880, "sizepct":100, "start":0] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1293 needed 
0 rest 5786 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1338 
satisfy p [0, 5, 7] cyl 5786 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1338 
satisfy p [1, 6, 1306] cyl 5786 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1338 
satisfy p [2, 7, 196] cyl 5786 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1338 
satisfy p [3, 8, 1] cyl 5786 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1342 added 
[[0, 5, 7], [1, 6, 1306], [2, 7, 196], [3, 8, 1]] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1396 rest 
5786 weights [0, 0, 0, 1] added [[0, 5, 7], [1, 6, 1306], [2, 7, 196], [3, 8, 
1]] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1408 sum 1 
rest 5786 added [[0, 5, 7], [1, 6, 1306], [2, 7, 196], [3, 8, 1]] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1427 sum 1 
rest 5786 diff 0 added [0, 5, 7] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1427 sum 1 
rest 5786 diff 0 added [1, 6, 1306] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1427 sum 1 
rest 5786 diff 0 added [2, 7, 196] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1427 sum 0 
rest 0 diff 5786 added [3, 8, 5787] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1433 ret 
(distribute_space) $["added":[[0, 5, 7], [1, 6, 1306], [2, 7, 196], [3, 8, 
5787]], "diff":5786] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1360 
increase max p [[0, 5, 7], [1, 6, 1306], [2, 7, 196], [3, 8, 5787]] cyl 0 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1382 gap 
$["cyl_size":8225280, "disk_cyl":7296, "ext_pnr":[9, 10, 11, 12, 13, 14, 15], 
"extended_possible":true, "free_pnr":[2, 3, 4], "gap":[$["added":[[0, 5, 7], 
[1, 6, 1306], [2, 7, 196], [3, 8, 5787]], "created":1, "cylinders":0, 
"end":7295, "extended":true, "orig_cyl":7296, "size":60011642880, 
"sizepct":100, "start":0]], "max_primary":4, "procpart":4, "sum":60011642880] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1443 gap 
[$["added":[[0, 5, 7], [1, 6, 1306], [2, 7, 196], [3, 8, 5787]], "created":1, 
"cylinders":0, "end":7295, "extended":true, "orig_cyl":7296, 
"size":60011642880, "sizepct":100, "start":0]] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1462 weight 
after mode ret 0 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1465 added 
[[0, 5, 7], [1, 6, 1306], [2, 7, 196], [3, 8, 5787]] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1475 weight 
after gaps 0 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1505 after 
maximizes parts 907 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1525 
weight:  907 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1246 val 
907 cur_weight -100000 size 0 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1117 ret 
weight 907 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:1118 ret 
solution [$["added":[[0, 5, 7], [1, 6, 1306], [2, 7, 196], [3, 8, 5787]], 
"created":1, "cylinders":0, "end":7295, "extended":true, "orig_cyl":7296, 
"size":60011642880, "sizepct":100, "start":0]] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:618 
disk /dev/sda weight 907 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:623 sorted 
disks ["/dev/sda"] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] AutoinstStorage.ycp:407 solutions: 
$["device":"/dev/sda", "disk":$["bios_id":"0x80", "bus":"IDE", 
"cyl_count":7296, "cyl_size":8225280, "device":"/dev/sda", "label":"msdos", 
"max_logical":15, "max_primary":4, "model":"HTS726060M9AT00", "name":"1. IDE,   
55.8 GB, /dev/sda, HTS726060M9AT00", "partitions":[$["boot":true, 
"delete":true, "detected_fs":`unknown, "device":"/dev/sda1", "fsid":15, 
"fstype":"Extended", "name":"sda1", "nr":1, "region":[0, 7296], 
"size_k":58605120, "type":`extended], $["delete":true, "detected_fs":`ext2, 
"device":"/dev/sda5", "fsid":131, "fstype":"Linux native", "name":"sda5", 
"nr":5, "region":[0, 7], "size_k":56164, "type":`logical, "used_fs":`ext2, 
"uuid":"913990ca-656a-4dad-92b5-1a27d5a621ce"], $["delete":true, 
"detected_fs":`xfs, "device":"/dev/sda6", "fsid":131, "fstype":"Linux native", 
"name":"sda6", "nr":6, "region":[7, 1306], "size_k":10490413, "type":`logical, 
"used_fs":`xfs, "uuid":"a399caa8-d3a6-456b-8c92-1058bf5bf5d3"], 
$["delete":true, "detected_fs":`swap, "device":"/dev/sda7", "fsid":130, 
"fstype":"Linux swap", "inactive":true, "mount":"swap", "name":"sda7", "nr":7, 
"region":[1313, 196], "size_k":1574338, "type":`logical, "used_fs":`swap], 
$["delete":true, "detected_fs":`xfs, "device":"/dev/sda8", "fsid":131, 
"fstype":"Linux native", "name":"sda8", "nr":8, "region":[1509, 5787], 
"size_k":46484046, "type":`logical, "used_fs":`xfs, 
"uuid":"1075b001-907a-46bd-9f22-33a061350a13"]], "size_k":58605120, 
"type":`CT_DISK, "unique":"z70z.kDY68OcFuqA"], "partitions":[$["cylinders":7, 
"filesystem":`ext2, "filesystem_id":131, "format":true, "fsid":131, 
"mount":"/boot", "partition_id":131, "size":52428800], $["cylinders":1306, 
"filesystem":`xfs, "format":true, "fsid":131, "mount":"/", "partition_id":131, 
"size":10737418240], $["cylinders":196, "filesystem":`swap, "format":true, 
"fsid":131, "mount":"swap", "partition_id":130, "size":1610612736], 
$["crypt":"twofish256", "crypt_fs":true, 
"crypt_key":"abc12345678901234567890", "cylinders":1, "filesystem":`xfs, 
"format":true, "fsid":131, "loop_fs":true, "mount":"/home", 
"partition_id":131, "size":0]], "solution":$["cyl_size":8225280, 
"disk_cyl":7296, "ext_pnr":[9, 10, 11, 12, 13, 14, 15], 
"extended_possible":true, "free_pnr":[2, 3, 4], "gap":[$["added":[[0, 5, 7], 
[1, 6, 1306], [2, 7, 196], [3, 8, 5787]], "created":1, "cylinders":0, 
"end":7295, "extended":true, "orig_cyl":7296, "size":60011642880, 
"sizepct":100, "start":0]], "max_primary":4, "procpart":4, "sum":60011642880], 
"weight":907] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:822 
extended auto partition $["create":true, "device":"/dev/sda1", "fsid":15, 
"fstype":"Extended", "nr":1, "region":[0, 7296], "type":`extended] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:843 
partition id 131 format true part $["cylinders":7, "filesystem":`ext2, 
"filesystem_id":131, "format":true, "fsid":131, "mount":"/boot", 
"partition_id":131, "size":52428800] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] FileSystems.ycp:1254 
DefaultFstabOptions fsys `ext2 is acl,user_xattr 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:919 auto 
partition $["create":true, "device":"/dev/sda5", "format":true, "fsid":131, 
"fstopt":"acl,user_xattr", "fstype":"Linux native", "mount":"/boot", "nr":5, 
"region":[0, 7], "type":`logical, "used_fs":`ext2] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] FileSystems.ycp:1254 
DefaultFstabOptions fsys `xfs is                                                                 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:919 auto 
partition $["create":true, "device":"/dev/sda6", "format":true, "fsid":131, 
"fstopt" 
:"", "fstype":"Linux native", "mount":"/", "nr":6, "region":[7, 1306], 
"type":`logical, "used_fs":`xfs]                                                         
2005-09-21 20:58:01 <1> linux(3146) [YCP] FileSystems.ycp:1254 
DefaultFstabOptions fsys `swap is 
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:919 auto 
partition $["create":true, "device":"/dev/sda7", "format":true, "fsid":130, 
"fstopt":"", "fstype":"Linux swap", "mount":"swap", "nr":7, "region":[1313, 
196], "type":`logical, "used_fs":`swap] 
2005-09-21 20:58:01 <1> linux(3146) [YCP] FileSystems.ycp:1254 
DefaultFstabOptions fsys `xfs is                                                                 
2005-09-21 20:58:01 <1> linux(3146) [YCP] Storage.ycp:2306 SetCryptPwd 
device:/dev/sda8 
2005-09-21 20:58:01,046 INFO  libstorage - Storage.cc(setCryptPassword):1404 
device:/dev/sda8                                                                   
2005-09-21 20:58:01,046 INFO  libstorage - Volume.cc(setCryptPwd):1162 ret:0    
2005-09-21 20:58:01,046 INFO  libstorage - Storage.cc(setCryptPassword):1426 
ret:0                                                                              
2005-09-21 20:58:01 <1> linux(3146) [YCP] Storage.ycp:2309 SetCryptPwd sint 
ret 0     
2005-09-21 20:58:01 <1> linux(3146) [YCP] autoinstall/autopart.ycp:919 auto 
partition $["create":true, "crypt":"twofish256", "device":"/dev/sda8", 
"format":true, "fsid":131, "fstopt":"", "fstype":"Linux native", 
"loop_fs":true, "mount":"/home", "nr":8, "region":[1509, 5787], 
"type":`logical, "used_fs":`xfs]            2005-09-21 20:58:01 <1> 
linux(3146) [YCP] autoinstall/autopart.ycp:941 disk $["bios_id":"0x80", 
"bus":"IDE", "cyl_count":7296, "cyl_size":8225280, "device":"/dev/sda", 
"label":"msdos", "max_logical":15, "max_primary":4, "model":"HTS726060M9AT00", 
"name":"1. IDE,   55.8 GB, /dev/sda, HTS726060M9AT00", "partitions":
[$["boot":true, "delete":true, "detected_fs":`unknown, "device":"/dev/sda1", 
"fsid":15, "fstype":"Extended", "name":"sda1", "nr":1, "region":[0, 7296], 
"size_k":58605120, "type":`extended], $["delete":true, "detected_fs":`ext2, 
"device":"/dev/sda5", "fsid":131, "fstype":"Linux native", "name":"sda5", 
"nr":5, "region":[0, 7], "size_k":56164, "type":`logical, "used_fs":`ext2, 
"uuid":"913990ca-656a-4dad-92b5-1a27d5a621ce"], $["delete":true, 
"detected_fs":`xfs, "device":"/dev/sda6", "fsid":131, "fstype":"Linux native", 
"name":"sda6", "nr":6, "region":[7, 1306], "size_k":10490413, "type":`logical, 
"used_fs":`xfs, "uuid":"a399caa8-d3a6-456b-8c92-1058bf5bf5d3"], 
$["delete":true, "detected_fs":`swap, "device":"/dev/sda7", "fsid":130, 
"fstype":"Linux swap", "inactive":true, "mount":"swap", "name":"sda7", "nr":7, 
"region":[1313, 196], "size_k":1574338, "type":`logical, "used_fs":`swap], 
$["delete":true, "detected_fs":`xfs, "device":"/dev/sda8", "fsid":131, 
"fstype":"Linux native", "name":"sda8", "nr":8, "region":[1509, 5787], 
"size_k":46484046, "type":`logical, "used_fs":`xfs, 
"uuid":"1075b001-907a-46bd-9f22-33a061350a13"], $["create":true, 
"device":"/dev/sda1", "fsid":15, "fstype":"Extended", "nr":1, "region":[0, 
7296], "type":`extended], $["create":true, "device":"/dev/sda5", 
"format":true, "fsid":131, "fstopt":"acl,user_xattr", "fstype":"Linux native", 
"mount":"/boot", "nr":5, "region":[0, 7], "type":`logical, "used_fs":`ext2], 
$["create":true, "device":"/dev/sda6", "format":true, "fsid":131, "fstopt":"", 
"fstype":"Linux native", "mount":"/", "nr":6, "region":[7, 1306], 
"type":`logical, "used_fs":`xfs], $["create":true, "device":"/dev/sda7", 
"format":true, "fsid":130, "fstopt":"", "fstype":"Linux swap", "mount":"swap", 
"nr":7, "region":[1313, 196], "type":`logical, "used_fs":`swap], 
$["create":true, "crypt":"twofish256", "device":"/dev/sda8", "format":true, 
"fsid":131, "fstopt":"", "fstype":"Linux native", "loop_fs":true, 
"mount":"/home", "nr":8, "region":[1509, 5787], "type":`logical, 
"used_fs":`xfs]], "size_k":58605120, "type":`CT_DISK, 
"unique":"z70z.kDY68OcFuqA"] 
....
Comment 1 Uwe Gansert 2005-09-27 10:48:54 UTC
fixed.

For 10.1 (SLES10) we have to do a more sophisticated fix in libstorage too.
With the actual fix we have to initialize the harddisc or reuse existing
partitions. It's not possible to delete and recreate a partition with an
encrypted filesystem.

Comment 2 Karsten Kuenne 2005-09-29 17:35:34 UTC
Will the fix be in 10.0 final or do we have to wait for 10.1? If it didn't 
make the CD release will there at least be a patch for 10.0? 
 
Comment 3 Uwe Gansert 2005-09-30 07:56:09 UTC
The fix can't be in the 10.0 final because it's already in production.
I can't provide an official YOU update too, because the problem is on the
installation source and that can't be fixe via YOU.

What I had planed anyway is to provide autoyast snapshots from time to time and
announce them on the mailinglist. The first snapshot is planed by me around the
middle of october (no promise), short after the official 10.0 launch. That
snapshot is fixed then of course.