summaryrefslogtreecommitdiffstats
path: root/fsset.py
Commit message (Collapse)AuthorAgeFilesLines
* Replace old storage modules.David Lehman2009-02-231-3149/+0
|
* Ensure request.drive is always a list (#485622)David Cantrell2009-02-201-12/+9
| | | | | | | | | | | | | | | | | The main problem here is that get_partition_by_name() has been removed from partedUtils.py. The functionality is now provided by the getPartitionByPath() method on a parted.Disk object. The old function in partedUtils would iterate over the PedDisk collection and each partition manually, whereas now we have to call getPartitionByPath() for each parted.Disk we have. request.drive has been used inconsistently throughout the existing storage code and only started to show up when I was moving things from anaconda to pyparted. What this patch does is ensure that request.drive on RequestSpec objects is always a list or None. There are a few other changes in the storage code to handle the request.drive variable always being a list, but I think it should be pretty straightforward.
* Perform ext3->ext4 filesystem migration if ext4migrate is given (#484330).Chris Lumens2009-02-201-0/+7
|
* Fix typo in fsset.pyDavid Cantrell2009-02-121-1/+1
| | | | bootDev.device.getName() instead of bootDev.getName()
* Fix handling of device type vs. string in FileSystemSet.setActive.Chris Lumens2009-02-121-10/+8
|
* getPartitionByPath expects the device to start with /dev/.Chris Lumens2009-02-121-1/+1
|
* Fix typo: = -> ==David Cantrell2009-02-121-1/+1
|
* Use parted.Disk.getPartitionByPath()David Cantrell2009-02-121-3/+9
| | | | | | Removed the parted.getPartitionByName() function. There is now a method on parted.Disk called getPartitionByPath() which provides the same functionality, but only works on a single Disk.
* Iterate over partitions using disk.partitionsDavid Cantrell2009-02-121-1/+1
| | | | | | | Rather than calling disk.nextPartition() over and over, we can get a hash table of all partitions on a disk via disk.partitions. Iterate over the values() of this hash (the keys correspond to the partition number).
* Syntax changes for the new pyparted.David Cantrell2009-02-121-11/+7
| | | | | | | | | | | | | | | 1) Iterate over partitions with a for loop over disk.partitions.values() rather than calling next_partition() 2) Call getFlag() rather than get_flag() 3) Call setFlag() to enable a flag, call unsetFlag() to disable a flag. 4) Reference the active property rather than calling the is_active() method. And other fixes.
* parted.file_system_type_get() -> parted.fileSystemType[]David Cantrell2009-02-121-14/+14
|
* Removed partedUtils.get_partition_by_name()David Cantrell2009-02-121-1/+1
| | | | Now provided by pyparted as parted.getPartitionByName()
* Removed partedUtils.get_partition_name()David Cantrell2009-02-121-2/+2
| | | | Now provided by parted.Partition.getDeviceNodeName()
* Remove partedUtils.sniffFilesystemType()David Cantrell2009-02-121-1/+1
| | | | This function is just a pass-through for isys.readFSType().
* Make ext4 default in UI filesystem selection (bug #481112)Radek Vykydal2009-02-031-1/+10
| | | | | | This patch also makes selecting /boot as mountpoint to automatically select ext3 (in place of ext4) in filesystem combo.
* If ext4dev is seen in the /etc/fstab, treat it as ext4 instead (#474484).Chris Lumens2009-02-021-0/+6
|
* btrfs install supportEric Sandeen2009-01-191-0/+65
| | | | | | | | | | | | | | | | | | Now that btrfs is in mainline, let's let anaconda play with it too ;) We still need btrfs.ko in the kernel, and btrfs support in e2fsprogs. I've got the latter patch submitted upstream, and it's in rawhide now. Note that the below is 100% totally untested and may even have typos, my track record with python is not too good, sorry. :) So review would be appreciated.... Updated to address Radek's review, as well as adding the requisite witty (commandline-space-eating) boot option... (And stopped trying to use parted fs identification -- katzj) Signed-off-by: Eric Sandeen <sandeen@redhat.com>
* Allow ext4 without magic argument (keep a flag for migrate)Jeremy Katz2009-01-161-8/+1
| | | | ext4 should be safe enough to allow people to select it without a magic flag
* Support mounting NTFS filesystems (#430084)Jeremy Katz2009-01-161-0/+6
| | | | | Based on a patch by Tom Callaway <tcallawa@redhat.com>, this adds supporting for using ntfs-3g (and thus fuse) to mount filesystems.
* mdraid1: default to putting grub on partition instead of mbr (#217176)Hans de Goede2008-12-111-0/+5
| | | | | | | | | | | | As previously discussed we do want to allow installing the bootloader on the MBR in the raid 1 case (which until some time ago we did not allow) (#217176), but we do not want to change our current default of installing to the partition (which gives us the mirror redundancy, due to special handling in booty). This patch effectively reverts commit 48d582347492493c87b2b368394fd8e7342688bc, which removed the raid1 case special handling, and then adds mbr support to the raid special case in fsset.py, and add some special case handling to bootloader.py to not default to the mbr in this case.
* Unmount swap devices when migrating filesystems, then reactivate (#473260).Chris Lumens2008-12-081-3/+16
| | | | | | | | The main reason for this is that having swap files still mounted means that /mnt/sysimage cannot be unmounted in migrateFilesystems, which leads to a traceback on upgrades. Once we've unmounted all the swap devices, we then need to go back and turnOnSwap again afterwards. mountFilesystems doesn't do that for us.
* Better naming for LVM volume groups and logical volumes (#461682)David Cantrell2008-12-031-1/+4
| | | | | | | | | | | | | | | Try to name volume groups as vg_HOSTNAME and logical volumes as lv_MOUNTPOINT, if we can. Swap partitions will be lv_swapNN where NN is a unique number in the instance where more than one swap partition in use. The / partition will get the name lv_root. Fall back on the old naming system (VolGroupNN for volume groups and LogVolNN for logical volumes) for people doing custom setup or where the hostname is localhost. For swap partition naming, tack on an NN designation when there are more than 1 swap partitions requested. If only one is requested, it will be "lv_swap".
* Allow installing grub on the MBR if /boot is on mdraid (#217176)Hans de Goede2008-11-261-4/+0
| | | | | | | | | | | | | | | | This patch removes a special case when /boot (or / without a separate /boot) is on mdraid. For some reason we only allow installing grub to the mdX device then instead of allowing both the mbr of the 1st disk and the device holding /boot. I've searched through the anaconda history and this special handling of mdraid /boot has been there since before Feb. 2002, it was inherited from before booty was introduced and it does not seem to make sense. Either we cannot have /boot on mdraid at all (in all cases except for raid1) or we can have /boot on mdraid (in case of raid1) and then it does not matter if the bootstrap of grub starts on the mbr or on the first sector of a partition. This fixes 217176
* Support upgrades of systems whose rootfs is on an LV. (#471288)David Lehman2008-11-121-0/+50
| | | | | | | Since LVs appear as device paths in fstab (most other stuff as UUID=) we needed to add some smarts to readFstab so it can locate the backing device and create a useful Device instance with which we can mount the rootfs.
* Don't try to label XFS filesystems on livecd installs (#470951).Chris Lumens2008-11-111-2/+3
|
* Allow specifying devices by path if they're files (#468504)Jeremy Katz2008-10-301-1/+1
|
* Fix various syntax errors caught by PyCheckerHans de Goede2008-10-291-1/+1
| | | | Fix various syntax errors caught by PyChecker
* Include return code on resize failure error message (#468479)Jeremy Katz2008-10-261-2/+2
|
* ext4dev -> ext4 (esandeen).Chris Lumens2008-10-141-12/+4
|
* Support installs to SD via MMC (#461884)Jeremy Katz2008-09-291-1/+1
| | | | | Add modules for sd/mmc subsystem and support the block device name where we need to do munging given the 'p' separator
* If it's encrypted, it's encrypted. Passphrases will get sorted out.David Lehman2008-09-151-1/+1
|
* Use the device path to identify LUKS devs in /etc/fstab. (#460700)David Lehman2008-09-111-0/+2
| | | | | This is as safe as using a UUID since the device path is based on the LUKS UUID, not a device node.
* Fix a traceback with unencrypted autopart.David Lehman2008-08-291-1/+1
|
* Handle preexisting swraid w/ encrypted member disks/partitions.David Lehman2008-08-261-5/+17
|
* Clear up error reporting on upgrades when devices are listed by UUID.Chris Lumens2008-08-141-6/+3
|
* Fix a traceback calling createMapping.Chris Lumens2008-08-141-2/+2
|
* Fix PartitionDevice.getDevice to take asBoot into account.David Lehman2008-08-131-1/+1
|
* Don't base mpath/dmraid/raid startup/stopping based on if lvm is activated yet,Peter Jones2008-08-131-4/+10
| | | | since they might be started before there are any LVs. (this fixes dmraid.)
* Delay the duplicate label error until the label is actually used (#458505).Chris Lumens2008-08-111-28/+31
|
* Remove LabelFactory since we now rely on UUIDs for everything.Chris Lumens2008-08-041-72/+24
|
* Fix mke2fs argument passing (#457285).Chris Lumens2008-07-301-1/+1
|
* use newer mke2fs arguments for different filesystemsEric Sandeen2008-07-291-3/+2
| | | | | | | | We had been hard-coding various args to mke2fs to try to get what we wanted, but newer mke2fs supports "-t $TYPE" which is much simpler, and harder to get wrong. I must admit to not actually testing this patch, though.
* Use attributes to tell us whether filesystems are bootable (#457037).Chris Lumens2008-07-291-0/+11
|
* Spell pseudo correctly.Peter Jones2008-06-261-19/+19
|
* Remove support for RHupdates. updates.img is the way to go now.Chris Lumens2008-06-181-2/+1
|
* Unmount /mnt/sysimage/dev manually since it doesn't get an entry.Chris Lumens2008-06-101-7/+4
|
* Import N_ (#450163).Chris Lumens2008-06-051-0/+1
|
* Fix a couple typos in the getArch commit.Chris Lumens2008-06-041-1/+1
|
* 2008-06-04 Ján ONDREJ <ondrejj@salstar.sk> (via ondrejj@fedoraproject.org)Ján ONDREJ2008-06-041-17/+47
| | | | * po/sk.po: Typo fix.
* Search path rather than hard-coding path to mdadm (#444843)Jeremy Katz2008-05-011-1/+1
|