summaryrefslogtreecommitdiff
path: root/packages/slugos-init/files/boot
diff options
context:
space:
mode:
Diffstat (limited to 'packages/slugos-init/files/boot')
-rw-r--r--packages/slugos-init/files/boot/disk1
-rw-r--r--packages/slugos-init/files/boot/kexec2
2 files changed, 2 insertions, 1 deletions
diff --git a/packages/slugos-init/files/boot/disk b/packages/slugos-init/files/boot/disk
index a991bc50ac..d47be54c37 100644
--- a/packages/slugos-init/files/boot/disk
+++ b/packages/slugos-init/files/boot/disk
@@ -37,6 +37,7 @@ then
# the UUID mount fails a standard device mount
# is attempted.
if test -n "$UUID" &&
+ mount "$@" UUID="$UUID" /mnt ||
mount "$@" -U "$UUID" /mnt ||
mount "$@" "$device" /mnt
then
diff --git a/packages/slugos-init/files/boot/kexec b/packages/slugos-init/files/boot/kexec
index 8973d20bfe..dd757fd771 100644
--- a/packages/slugos-init/files/boot/kexec
+++ b/packages/slugos-init/files/boot/kexec
@@ -126,7 +126,7 @@ if [ -n "$1" -a -n "$2" ] ; then
sleep "$sleep"
if [ -n "$UUID" ] ; then
echo "mounting partition UUID \"$UUID\"..."
- if mount -o ro -U "$UUID" /mnt ; then
+ if mount -o ro UUID="$UUID" /mnt ; then
need_umount=1
kexec_image="/mnt/$kpath"
fi