Skip to content

Commit 580a11e

Browse files
author
Itaru Kitayama
committed
Use sudo when executing dracut (if not root, prerequisite is that user is a
passwordless sudoer).
1 parent 569c475 commit 580a11e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run_qemu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ install_build_initrd()
594594
# and it expects a /lib/modules/$kver/vmlinuz
595595
cp "$inst_path/vmlinuz-$kver" "$inst_prefix/lib/modules/$kver/vmlinuz"
596596

597-
dracut --force --verbose \
597+
sudo dracut --force --verbose \
598598
--no-hostonly \
599599
--show-modules \
600600
--kver="$kver" \

0 commit comments

Comments
 (0)