ubuntu之取消uuid从sdx启动

root@nulijiabei:/usr/lib/grub# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04 LTS
Release:    20.04
Codename:   focal
  vi /usr/lib/grub/grub-mkconfig_lib 

  // 按以下代码注释 ...
  # If there's a filesystem UUID that GRUB is capable of identifying, use it;
  # otherwise set root as per value in device.map.
  fs_hint="`"${grub_probe}" --device $@ --target=compatibility_hint`"
  if [ "x$fs_hint" != x ]; then
    echo "set root='$fs_hint'"
  fi
#  if fs_uuid="`"${grub_probe}" --device $@ --target=fs_uuid 2> /dev/null`" ; then
#    hints="`"${grub_probe}" --device $@ --target=hints_string 2> /dev/null`" || hints=
#    echo "if [ x\$feature_platform_search_hint = xy ]; then"
#    echo "  search --no-floppy --fs-uuid --set=root ${hints} ${fs_uuid}"
#    echo "else"
#    echo "  search --no-floppy --fs-uuid --set=root ${fs_uuid}"
#    echo "fi"
#  fi
  IFS="$old_ifs"
vi /etc/default/grub

// 打开注释 ...
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
GRUB_DISABLE_LINUX_UUID=true
// 生成即可 ...
sudo update-grub
// 手动修改 
/etc/fstab