Bug 1281825 - 'Failed to start Switch Root' if accented letter in kickstart file
Summary: 'Failed to start Switch Root' if accented letter in kickstart file
Keywords:
Status: CLOSED DUPLICATE of bug 1280448
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-13 14:17 UTC by Derrien
Modified: 2015-11-13 14:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-13 14:24:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Derrien 2015-11-13 14:17:30 UTC
Description of problem:
If there is an accented letter in kickstart file (in a comment for instance)
we get :
[FAILED] Failed to start Switch Root
See 'systemctl status initrd_switch-root.service' for details
Warning: /dev/root does not exist

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Put '# Résumé' in start of a kickstart file
2. Boot with 'append initrd=initrd.img inst.ks=nfs:server:/vol/linux/config/kickstart'
3.

Actual results:


Expected results:


Additional info:
NB : Works with vmlinuz/initrd.img from Fedora22

Extract from /run/initramfs/rdsosreport.txt :

[   24.074714] e8470p dracut-initqueue[665]: File "/sbin/parse-kickstart", line 585, in process_kickstart
[   24.074855] e8470p dracut-initqueue[665]: processed_file = preprocessKickstart(ksfile)
[   24.074993] e8470p dracut-initqueue[665]: File "/usr/lib/python3.4/site-packages/pykickstart/parser.py", line 124, in preprocessKickstart
[   24.075161] e8470p dracut-initqueue[665]: contents = load_to_str(f)
[   24.075295] e8470p dracut-initqueue[665]: File "/usr/lib/python3.4/site-packages/pykickstart/load.py", line 44, in load_to_str
[   24.075426] e8470p dracut-initqueue[665]: return _load_file(location)
[   24.075562] e8470p dracut-initqueue[665]: File "/usr/lib/python3.4/site-packages/pykickstart/load.py", line 93, in _load_file
[   24.075695] e8470p dracut-initqueue[665]: contents = fh.read()
[   24.075827] e8470p dracut-initqueue[665]: File "/usr/lib64/python3.4/encodings/ascii.py", line 26, in decode
[   24.075963] e8470p dracut-initqueue[665]: return codecs.ascii_decode(input, self.errors)[0]
[   24.076122] e8470p dracut-initqueue[665]: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128)
[   24.093943] e8470p dracut-initqueue[665]: /lib/anaconda-lib.sh: line 212: /tmp/ks.info: No such file or directory

Comment 1 David Shea 2015-11-13 14:24:30 UTC

*** This bug has been marked as a duplicate of bug 1280448 ***


Note You need to log in before you can comment on or make changes to this bug.