FS#28679 - [mkinitcpio] the fsck hook fails if the / fileystem is other than /usr filesystem
Attached to Project:
Arch Linux
Opened by Dikiy (dikiy) - Monday, 27 February 2012, 11:51 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 18 March 2012, 18:57 GMT
Opened by Dikiy (dikiy) - Monday, 27 February 2012, 11:51 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 18 March 2012, 18:57 GMT
|
Details
Description:
The fsck hook fails if the / fileystem is other than /usr filesystem Steps to reproduce: 1. Create / FS with ext2 2. Create /usr FS with ext4 3. Do mkinitcpio whith fsck and autodetect hooks 4. reboot |
This task depends upon
FS#28653?build() {
local added=0
###workaround
fs_autodetect_failed=1
###
if (( ! fs_autodetect_failed )) && [[ $rootfstype ]]; then
add_binary /sbin/fsck.$rootfstype && (( ++added ))
else
for fsck in "$BASEDIR"/sbin/fsck.*; do
[[ -f $fsck ]] || continue
add_binary "${fsck#$BASEDIR}" && (( ++added ))
done
fi
if (( added )); then
add_binary /sbin/fsck
else
warning "No fsck helpers found. fsck will not be run on boot."
fi
}