You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing zfs 0.8.0 #823 (current at 10 June 2020) and applying a kernel update the step to rebuild initramfs failed
the hook zfs would complain that /usr/bin was not a directory so
cp to /usr/bin/dirname or env or net would all fail.
Putting this debug temporarily into the zfs hook
for ii in $COPY_EXEC_LIST
do
dir=$(dirname "$ii")
if [ -d "$DESTDIR/$dir" ]
then
echo "INFO: OK directory $DESTDIR/$dir exists"
elif [ -f "$DESTDIR/$dir" ]
then
echo "WARNING: $DESTDIR/$dir exists - but is a file"
ls -ld "$DESTDIR/$dir"
head "$DESTDIR/$dir"
elif [ -e "$DESTDIR/$dir" ]
then
echo "WARNING: $DESTDIR/$dir exists - but is not a directory"
ls -ld "$DESTDIR/$dir"
elif [ ! -d "$DESTDIR/$dir" ]
then
mkdir -p "$DESTDIR/$dir"
mkdir_status=$?
if [ $mkdir_status -ne 0 ]
then
echo "WARNING: bad status $mkdir_status for mkdir -p $DESTDIR/$dir"
else
echo "INFO OK status $mkdir_status for mkdir -p $DESTDIR/$dir"
fi
fi
if [ -d "$DESTDIR/$dir" ]
then
copy_exec "$ii"
else
echo "WARNING: skipping copy_exec $ii"
fi
done
From the 'ls -ld' output fromn that debug output I figured out the file /usr/bin was in fact a copy of zfsunlock
…mpting subsequent copy
Ref: initramfs hook zfsunlock creates initramfs /usr/bin as as file and not directory openzfs#10434
Modeled on the similar mkdir statement for inirtramfs /etc in the hook zfs
This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.
System information
Describe the problem you're observing
After installing zfs 0.8.0 #823 (current at 10 June 2020) and applying a kernel update the step to rebuild initramfs failed
the hook zfs would complain that /usr/bin was not a directory so
cp to /usr/bin/dirname or env or net would all fail.
Putting this debug temporarily into the zfs hook
From the 'ls -ld' output fromn that debug output I figured out the file /usr/bin was in fact a copy of zfsunlock
Changing zfsunlock hook from
to
i.e. adding a trailing / character fixed the problem and I was able to build the initramfs
Describe how to reproduce the problem
Include any warning/errors/backtraces from the system logs
An example is provided below.
While I see this on Ubuntu xenial I don't see it on Ubuntu focal
The text was updated successfully, but these errors were encountered: