在Debian中,哪个软件包负责创建/ etc / default / grub?


10

许多软件包的名称中都有grub,它们是GRUB(Grand Unified Boot Loader)的一部分。我系统上安装的是-

  1. 常见
  2. rub
  3. 平板电脑
  4. grub-pc-bin
  5. grub-theme-starfield
  6. grub2
  7. grub2-common
  8. grub2-splashimages

我首先看了看它是符号链接文件还是常规文件-

 [$] ll -h /etc/default/grub

    -rw-r--r-- 1 root root 1.2K 2017-01-22 14:16 /etc/default/grub

我看了一下,但是找不到任何可以告诉我该文件的来源?

[$] dpkg -S /etc/default/grub

dpkg-query: no path found matching pattern /etc/default/grub

要么

[$] dpkg-query -W /etc/default/grub

dpkg-query: no packages found matching /etc/default/grub

Answers:


15

在这种情况下,您可以通过查看安装后脚本来找到相关的软件包:

grep /etc/default/grub /var/lib/dpkg/info/*.postinst

这表明该文件是由创建的grub-pc

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.