scripts: add unnecessary descriptions

This commit is contained in:
2025-11-10 20:47:29 +01:00
parent 94118d682b
commit 7483945552
35 changed files with 178 additions and 72 deletions
+12
View File
@@ -1,5 +1,17 @@
#!/bin/sh
# Description:
# Mount a WSL VHDX file to a specified mount point using guestmount.
#
# Requirements:
# - libguestfs-tools
# - sudo privileges
#
# Memo:
# - set `LIBGUESTFS_DEBUG=1 LIBGUESTFS_TRACE=1` to show details when guestmount fails.
# - A common issue is that the VHDX file has logs that needs to be "replayed".
# This can be done using `qemu-img check -r all <VHDX_PATH>`
issu && {
echo "Do not run this script in sudo mode."
exit 1