maybe chmod 0755 'systemd/system/printer.target.wants'
maybe chmod 0755 'systemd/system/remote-fs.target.wants'
maybe chmod 0755 'systemd/system/rescue.target.wants'
+maybe chmod 0755 'systemd/system/sleep.target.wants'
maybe chmod 0644 'systemd/system/snap-core-11316.mount'
maybe chmod 0644 'systemd/system/snap-core-11420.mount'
maybe chmod 0644 'systemd/system/snap-pycharm\x2dcommunity-244.mount'
fi
if [ x"$GRUB_FORCE_PARTUUID" != x ]; then
+ gettext_printf "GRUB_FORCE_PARTUUID is set, will attempt initrdless boot\n" >&2
+ cat << EOF
+#
+# GRUB_FORCE_PARTUUID is set, will attempt initrdless boot
+# Upon panic fallback to booting with initrd
+EOF
echo "set partuuid=${GRUB_FORCE_PARTUUID}"
fi
linux_root_device_thisversion="PARTUUID=${GRUB_FORCE_PARTUUID}"
fi
message="$(gettext_printf "Loading initial ramdisk ...")"
+ initrdlessfail_msg="$(gettext_printf "GRUB_FORCE_PARTUUID set, initrdless boot failed. Attempting with initrd.")"
+ initrdlesstry_msg="$(gettext_printf "GRUB_FORCE_PARTUUID set, attempting initrdless boot.")"
initrd_path=
for i in ${initrd}; do
initrd_path="${initrd_path} ${rel_dirname}/${i}"
if test -n "${initrd}" && [ x"$GRUB_FORCE_PARTUUID" != x ]; then
sed "s/^/$submenu_indentation/" << EOF
if [ "\${initrdfail}" = 1 ]; then
+ echo '$(echo "$initrdlessfail_msg" | grub_quote)'
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
EOF
if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
sed "s/^/$submenu_indentation/" << EOF
initrd $(echo $initrd_path)
else
+ echo '$(echo "$initrdlesstry_msg" | grub_quote)'
linux ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args} panic=-1
EOF
if [ -n "$initrd_path_only_early" ]; then