使用AWS EC2在更新ubuntu 16.04上本地修改的/boot/grub/menu.lst

Dar*_*ren 4 ubuntu amazon-ec2 amazon-web-services

我在Amazon AWS EC2上运行ubuntu 16.04,并且刚刚运行来更新控制台中建议的软件包。sudo apt-get dist-upgrade

在此期间,我一直提示A new version of /boot/grub/menu.lst is available, but the version installed currently has been locally modified.程序包配置menu.lst

我们尚未进行任何更改,因此我假设这是Amazon AWS EC2的设置。

我应该如何进行?

Line by line differences between versions

--- /run/grub/menu.lst root.root 0644 2018-01-25 22:33:02
+++ /tmp/fileeCfBYY root.root 0600 2018-01-25 22:33:02
@@ -3,11 +3,9 @@
   title Ubuntu 16.04.3 LTS, kernel 4.4.0-97-generic 
   root (hd0)
   kernel /boot/vmlinuz-4.4.0-97-generic root=LABEL=cloudimg-rootfs ro console=hvc0
-initrd /boot/initrd.img-4.4.0-97-generic 

   title Ubuntu 16.04.3 LTS, kernel 4.4.0-97-generic (recovery mode)
   root (hd0)
   kernel /boot/vmlinuz-4.4.0-97-generic root=LABEL=cloudimg-rootfs ro single 
-initrd /boot/initrd.img-4.4.0-97-generic 

### END DEBIAN AUTOMAGIC KERNELS LIST 
Run Code Online (Sandbox Code Playgroud)

屏幕截图