FS#44073 - [arch-install-scripts] arch-chroot crashes if using zsh inside the chroot
Attached to Project:
Arch Linux
Opened by John (graysky) - Friday, 06 March 2015, 19:31 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 07 March 2015, 17:15 GMT
Opened by John (graysky) - Friday, 06 March 2015, 19:31 GMT
Last edited by Dave Reisner (falconindy) - Saturday, 07 March 2015, 17:15 GMT
|
Details
When using this script to chroot into an Arch partition
where any user (root or otherwise) is using zsh within the
chroot, hitting ctrl+c causes the script to break and quit
resulting in the following output and leaving
/target/dev/pts /target/dev mounted.
Note when using bash, I cannot get this error so I believe it's related to using zsh. % sudo arch-chroot /mnt/mini /bin/zsh # <<hit ctrl-c>> # umount: /mnt/mini/dev/pts: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) umount: /mnt/mini/dev: target is busy (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1).) % zsh: error on TTY read: Input/output error Steps to reproduce: 1) Mount an Arch partition and install 'zsh' and 'grml-zsh-config' within it 2) Execute the chroot command from another Arch env: sudo arch-chroot /mnt/mini /bin/zsh 3) Hit ctrl+c in the chroot |
This task depends upon
Closed by Dave Reisner (falconindy)
Saturday, 07 March 2015, 17:15 GMT
Reason for closing: Upstream
Additional comments about closing: Needs to be fixed in ZSH proper, not papered over in arch-install-scripts.
Saturday, 07 March 2015, 17:15 GMT
Reason for closing: Upstream
Additional comments about closing: Needs to be fixed in ZSH proper, not papered over in arch-install-scripts.
# unshare --fork --pid /bin/zsh
# ^C
I tried several other shells: mksh, bash, dash, fish, and tcsh. None of them suffer from this deficiency.
Please file a bug upstream to ZSH.