-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request to repair the error of qemu nbd in the switch_root process #2637
Comments
There is also a systemd issue - systemd/systemd#31690 that you did not linked to |
Who knows how to protect specific processes during switch switching |
hCorrelation of similar problems |
This is some of my handling, although not successful. However, some information can be provided to facilitate understanding
Reference: |
logs: |
Describe the bug
A clear and concise description of what the error is.
Distribution used
Which distribution was this behaviour seen in?
Dracut version
Version: 059-16.fc39
Init system
/sbin/init -> ../lib/systemd/systemd
To Reproduce
`QEMUNBD=$(getarg qemunbd=)
export QEMUNBD
echo "test:$QEMUNBD"
if [ -n "$QEMUNBD" ]; then
modprobe nbd
modprobe nvme
modprobe ntfs3
if ismounted "$NEWROOT"; then
umount "$NEWROOT"
else
echo "Directory $NEWROOT is not mounted."
fi
fi`
sudo dracut -i ./kloop/10-vhdmount-kloop.sh /lib/dracut/hooks/pre-mount/10-vhdmount-kloop.sh --no-hostonly --install " vi /etc/virc ps grep cat rm blkid losetup kpartx partx mount.fuse mount.ntfs-3g ntfs-3g shutdown qemu-nbd " --add-drivers "fuse dm-mod nbd nvme " -o " plymouth btrfs crypt cifs fcoe fcoe-uefi iscsi nfs" ./kloop/initramfs.img
`menuentry 'niumao ' --class fedora {
insmod gzio
insmod part_msdos
insmod part_gpt
insmod ext2
insmod ntfs
insmod probe
insmod search
set vhdfile="/Blackup/kloop_dracut/kloop_dracut.vhd"
set root=(hd1,gpt2)
search --no-floppy -f --set=aabbcc $vhdfile
set root=${aabbcc}
probe -u --set=ddeeff ${aabbcc}
linux /Blackup/kloop_dracut/vmlinuz rw root=UUID=${ddeeff} qemunbd=$vhdfile selinux=0 rd.debug rd.shell rd.break=dracut-pre-mount rd.break=dracut-pre-trigger rd.break=dracut-initqueue rd.break=initqueue rd.break=pre-pivot rd.memlunit=2048M rd.ip=auto nbd.max_part=16
}`
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
logs:https://gist.github.com/lz-lunzi/0570a44040270fb676cac4dcbd5c0a96
The text was updated successfully, but these errors were encountered: