diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-05-29 15:39:08 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-05-29 15:56:29 -0400 |
commit | 238fb3d77e336b26150ab46e5be5ce79dafbe2f7 (patch) | |
tree | be7c8e86cce5de880a28a9ad502366662d2015ef | |
parent | 54e361d70bc5b9187c95e2fc986858d4e68f6a0e (diff) | |
download | anaconda-238fb3d77e336b26150ab46e5be5ce79dafbe2f7.tar.gz anaconda-238fb3d77e336b26150ab46e5be5ce79dafbe2f7.tar.xz anaconda-238fb3d77e336b26150ab46e5be5ce79dafbe2f7.zip |
Don't allow vfat /boot
-rw-r--r-- | partitions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/partitions.py b/partitions.py index b3505452f..8d1040c0b 100644 --- a/partitions.py +++ b/partitions.py @@ -1253,6 +1253,12 @@ class Partitions: errors.append(_("Bootable partitions cannot be on an %s " "filesystem.")%(bootreq.fstype.getName(),)) + # vfat /boot is insane. + if (bootreq.mountpoint and bootreq.mountpoint == "/" and + bootreq.fstype and bootreq.fstype.getName() == "vfat"): + errors.append(_("Bootable partitions cannot be on an %s " + "filesystem.")%(bootreq.fstype.getName(),)) + if (bootreq.isEncrypted(self)): errors.append(_("Bootable partitions cannot be on an " "encrypted block device")) |