mount_usr()
{
- local _dev _mp _fs _opts _rest _usr_found _ret
+ local _dev _mp _fs _opts _rest _usr_found _ret _freq _passno
# check, if we have to mount the /usr filesystem
- while read _dev _mp _fs _opts _rest; do
+ while read _dev _mp _fs _opts _freq _passno; do
if [ "$_mp" = "/usr" ]; then
case "$_dev" in
LABEL=*)
_dev="/dev/disk/by-uuid/${_dev#UUID=}"
;;
esac
- echo "$_dev ${NEWROOT}${_mp} $_fs ${_opts} $_rest"
+ echo "$_dev ${NEWROOT}${_mp} $_fs ${_opts} $_freq $_passno"
_usr_found="1"
break
fi
if [ "x$_usr_found" != "x" ]; then
# we have to mount /usr
- fsck_single "$_dev" "$_fs"
+ if [ "x0" != "x${_passno:-0}" ]; then
+ fsck_single "$_dev" "$_fs"
+ else
+ :
+ fi
_ret=$?
echo $_ret >/run/initramfs/usr-fsck
if [ $_ret -ne 255 ]; then