|
Bugzilla – Full Text Bug Listing |
| Summary: | Automatic repair does not find swap devices on RAID | ||
|---|---|---|---|
| Product: | [openSUSE] SUSE LINUX 10.0 | Reporter: | Krzysztof Lichota <krzysiek-novell> |
| Component: | Installation | Assignee: | Jiří Suchomel <jsuchome> |
| Status: | RESOLVED FIXED | QA Contact: | Klaus Kämpf <kkaempf> |
| Severity: | Minor | ||
| Priority: | P5 - None | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | i686 | ||
| OS: | SuSE Pro 9.3 | ||
| Whiteboard: | |||
| Found By: | Other | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Krzysztof Lichota
2005-09-04 07:25:52 UTC
Could you please check again with the OpenSUSE 10 beta? (http://www.opensuse.org/index.php/Download) If you encounter it also there, don't forget to attach the log files: http://www.opensuse.org/index.php/Bug_Reporting_FAQ#YaST btw, swap partition is detected using Storage::GetTargetMap() and Partitions::fsid_swap check for partition id. If the swap is on a raid the check for Partitions::fsid_swap will fail since the raid volume doe not have a partition id. For the same reason you would not be able to detect swap on LVM logical volumes. For such devices checking for the key "detected_fs" in the parttition map, having the value `swap would be better. This would also be more robust for normal disks since there are disks e.g. on S390 which do not have any valid partition ids. So is it sufficient to enhance the code
filter (map p, disk["partitions"]:[], ``(
!p["delete"]:false &&
p["fsid"]:0 == Partitions::fsid_swap
);
to this condition:
!p["delete"]:false &&
(p["fsid"]:0 == Partitions::fsid_swap ||
p["detected_fs"]:nil == `swap)
The detection is in repair/src/OSRSwap.ycp, from line 85
Yes, this should work. fixed version should appear in SL10.0 RC1 |