diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-02-04 17:55:25 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-02-04 17:55:25 +0000 |
commit | c73896afaf7c2ba6b4074a7a9f2374afd5592b8a (patch) | |
tree | 2e9c1310679f8782db8b6bfaead87364f58f292d /kickstart.py | |
parent | c17fe085b1ac1b1f1773f01372e4432d87c2cf2b (diff) | |
download | anaconda-c73896afaf7c2ba6b4074a7a9f2374afd5592b8a.tar.gz anaconda-c73896afaf7c2ba6b4074a7a9f2374afd5592b8a.tar.xz anaconda-c73896afaf7c2ba6b4074a7a9f2374afd5592b8a.zip |
uniqueID *must* be an int. convert what we're given in kickstart to be an int (#59270)
Diffstat (limited to 'kickstart.py')
-rw-r--r-- | kickstart.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/kickstart.py b/kickstart.py index 7d00b215a..ecbce053f 100644 --- a/kickstart.py +++ b/kickstart.py @@ -738,7 +738,15 @@ class KickstartBase(BaseInstallClass): mountpoint = extra[0] elif extra[0][:5] == "raid.": filesystem = fileSystemTypeGet("software RAID") - uniqueID = extra[0] + + # cheap hack. unique id needs to be an int + theID = "" + for char in extra[0][5:]: + if char not in string.digits: + continue + theID = theID + char + if len(theID) > 0: + uniqueID = int(theID) elif extra[0:9] == "/boot/efi": filesystem = fileSystemTypeGet("vfat") mountpoint = extra[0] |