SHARE
TWEET

log_05ago19

a guest Aug 5th, 2019 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Tipo di problema: boot
  2. Log creato il: 05 August 2019 alle 23.11
  3. Ultimo aggiornamento del sistema: 05 August 2019
  4. Versione script: 1.0.67
  5.  
  6. ******************************************
  7. /sys/class/dmi/id/*
  8. ******************************************
  9. Produttore: Dell Inc.        
  10. Prodotto:   Inspiron 7537
  11. Versione:  
  12. BIOS vers.: A10
  13.  
  14. ******************************************
  15. uname -a
  16. ******************************************
  17. Linux nomehost 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64 GNU/Linux
  18.  
  19. ******************************************
  20. /etc/debian_version
  21. ******************************************
  22. 10.0
  23.  
  24. ******************************************
  25. Desktop Environment - Window Manager
  26. ******************************************
  27. Default:
  28. - x-session-manager: /usr/bin/cinnamon-session
  29. - x-window-manager: /usr/bin/mutter
  30. Installati (x-session-manager):
  31. In esecuzione: Sconosciuto
  32.  
  33. ******************************************
  34. /etc/X11/default-display-manager
  35. ******************************************
  36. /usr/sbin/gdm3
  37.  
  38. ******************************************
  39. groups
  40. ******************************************
  41. nomeutente cdrom floppy audio dip video plugdev netdev bluetooth lpadmin scanner
  42.  
  43. ******************************************
  44. /var/log/syslog
  45. ******************************************
  46. File "/var/log/syslog" non trovato
  47.  
  48. ******************************************
  49. systemctl --failed --no-pager
  50. ******************************************
  51. Running in chroot, ignoring request.
  52.  
  53. ******************************************
  54. journalctl -x -b --no-pager
  55. ******************************************
  56. No journal files were found.
  57. -- No entries --
  58.  
  59. ******************************************
  60. journalctl -x -b --no-pager -p err
  61. ******************************************
  62. No journal files were found.
  63. -- No entries --
  64.  
  65. ******************************************
  66. journalctl -x -b --no-pager -p warning
  67. ******************************************
  68. No journal files were found.
  69. -- No entries --
  70.  
  71. ******************************************
  72. systemd-cgtop -b --iterations=5
  73. ******************************************
  74. Failed to determine supported controllers: No medium found
  75.  
  76. ******************************************
  77. systemd-cgls -l
  78. ******************************************
  79. Failed to get root control group path.
  80. No cgroup filesystem mounted on /sys/fs/cgroup
  81. Failed to list cgroup tree: No medium found
  82.  
  83. ******************************************
  84. systemd-delta
  85. ******************************************
  86. [EXTENDED]   /usr/lib/systemd/system/rc-local.service → /usr/lib/systemd/system/rc-local.service.d/debian.conf
  87. [EXTENDED]   /usr/lib/systemd/system/systemd-resolved.service → /usr/lib/systemd/system/systemd-resolved.service.d/resolvconf.conf
  88. [EXTENDED]   /usr/lib/systemd/system/systemd-timesyncd.service → /usr/lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
  89.  
  90. 3 overridden configuration files found.
  91.  
  92. ******************************************
  93. dmesg -l err
  94. ******************************************
  95. [    0.142163] [Firmware Bug]: TSC_DEADLINE disabled due to Errata; please update microcode to version: 0x20 (or later)
  96. [   42.001188] iwlwifi 0000:02:00.0: firmware: failed to load iwlwifi-7260-17.ucode (-2)
  97. [   42.001189] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
  98. [   42.001193] iwlwifi 0000:02:00.0: iwlwifi-7260-17 is required
  99. [   42.001194] iwlwifi 0000:02:00.0: check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
  100. [   58.905140] r8169 0000:03:00.1: firmware: failed to load rtl_nic/rtl8411-2.fw (-2)
  101.  
  102. ******************************************
  103. dmesg -l warn
  104. ******************************************
  105. [    0.412710] ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
  106. [    0.412711] ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
  107. [    0.424078] MDS CPU bug present and SMT on, data leak possible. See https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/mds.html for more details.
  108. [    0.424078]  #2 #3
  109. [    0.603258] pci 0000:00:14.0: can't derive routing for PCI INT A
  110. [    0.603259] pci 0000:00:14.0: PCI INT A: no GSI
  111. [    1.729230] xhci_hcd 0000:00:14.0: can't derive routing for PCI INT A
  112. [    1.729231] xhci_hcd 0000:00:14.0: PCI INT A: no GSI
  113. [    2.070095] ata1.00: supports DRM functions and may not be fully accessible
  114. [    2.074637] ata1.00: supports DRM functions and may not be fully accessible
  115. [    2.890135] sd 4:0:0:0: [sdb] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
  116. [   21.894788] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  117. [   41.948832] r8169 0000:03:00.1: can't disable ASPM; OS doesn't have ASPM control
  118. [   42.001190] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-7260-17.ucode failed with error -2
  119. [   49.657401] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  120. [   49.659135] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  121. [   49.715974] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  122. [   49.717685] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  123. [   50.832704] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  124. [   50.834340] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  125. [   50.889281] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  126. [   50.891291] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  127. [   57.025419] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  128. [   57.027238] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  129. [   57.084990] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  130. [   57.088194] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  131. [   58.905143] r8169 0000:03:00.1: Direct firmware load for rtl_nic/rtl8411-2.fw failed with error -2
  132. [   58.905146] r8169 0000:03:00.1 enp3s0f1: unable to load firmware patch rtl_nic/rtl8411-2.fw (-2)
  133. [   65.402871] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  134. [   65.404749] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  135. [   65.461182] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  136. [   65.463314] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  137. [   66.566172] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  138. [   66.567532] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  139. [   66.622209] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  140. [   66.624064] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  141. [   72.712059] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  142. [   72.713482] isofs_fill_super: bread failed, dev=sda2, iso_blknum=16, block=32
  143. [   72.770088] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  144. [   72.772886] isofs_fill_super: bread failed, dev=sdb2, iso_blknum=16, block=32
  145. [   73.467950] r8169 0000:03:00.1: can't disable ASPM; OS doesn't have ASPM control
  146.  
  147. ******************************************
  148. lsmod
  149. ******************************************
  150. Module                  Size  Used by
  151. dm_mod                155648  0
  152. raid456               172032  0
  153. async_raid6_recov      20480  1 raid456
  154. async_memcpy           16384  2 raid456,async_raid6_recov
  155. async_pq               16384  2 raid456,async_raid6_recov
  156. async_xor              16384  3 async_pq,raid456,async_raid6_recov
  157. async_tx               16384  5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov
  158. raid1                  45056  0
  159. raid0                  20480  0
  160. md_mod                167936  3 raid1,raid0,raid456
  161. xfs                  1458176  0
  162. jfs                   208896  0
  163. ext4                  733184  1
  164. crc16                  16384  1 ext4
  165. mbcache                16384  1 ext4
  166. jbd2                  122880  1 ext4
  167. fscrypto               32768  1 ext4
  168. ecb                    16384  0
  169. btrfs                1384448  0
  170. xor                    24576  2 async_xor,btrfs
  171. zstd_decompress        81920  1 btrfs
  172. zstd_compress         172032  1 btrfs
  173. xxhash                 16384  2 zstd_compress,zstd_decompress
  174. raid6_pq              122880  4 async_pq,btrfs,raid456,async_raid6_recov
  175. libcrc32c              16384  3 btrfs,xfs,raid456
  176. crc32c_generic         16384  3
  177. ctr                    16384  4
  178. ccm                    20480  6
  179. r8169                  86016  0
  180. realtek                20480  0
  181. libphy                 77824  2 r8169,realtek
  182. arc4                   16384  2
  183. iwlmvm                299008  0
  184. mac80211              815104  1 iwlmvm
  185. iwlwifi               241664  1 iwlmvm
  186. cfg80211              761856  3 iwlmvm,iwlwifi,mac80211
  187. rfkill                 28672  2 cfg80211
  188. nls_ascii              16384  0
  189. nls_cp437              20480  0
  190. nls_utf8               16384  1
  191. vfat                   20480  0
  192. fat                    86016  1 vfat
  193. isofs                  49152  1
  194. hid_multitouch         28672  0
  195. uas                    28672  1
  196. usb_storage            73728  2 uas
  197. hid_generic            16384  0
  198. usbhid                 57344  0
  199. hid                   135168  3 usbhid,hid_multitouch,hid_generic
  200. sd_mod                 61440  4
  201. rtsx_pci_sdmmc         28672  0
  202. mmc_core              172032  1 rtsx_pci_sdmmc
  203. ahci                   40960  0
  204. libahci                40960  1 ahci
  205. libata                270336  2 libahci,ahci
  206. xhci_pci               16384  0
  207. xhci_hcd              266240  1 xhci_pci
  208. ehci_pci               16384  0
  209. ehci_hcd               94208  1 ehci_pci
  210. scsi_mod              245760  4 sd_mod,usb_storage,uas,libata
  211. usbcore               290816  7 xhci_hcd,ehci_pci,usbhid,usb_storage,ehci_hcd,xhci_pci,uas
  212. rtsx_pci               73728  1 rtsx_pci_sdmmc
  213. thermal                20480  0
  214. usb_common             16384  1 usbcore
  215.  
  216. ******************************************
  217. lspci -knn
  218. ******************************************
  219. 00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 0b)
  220.     Subsystem: Dell Haswell-ULT DRAM Controller [1028:05f9]
  221. 00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a16] (rev 0b)
  222.     Subsystem: Dell Haswell-ULT Integrated Graphics Controller [1028:05fa]
  223.     Kernel modules: i915
  224. 00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 0b)
  225.     Subsystem: Dell Haswell-ULT HD Audio Controller [1028:05f9]
  226.     Kernel modules: snd_hda_intel
  227. 00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04)
  228.     Subsystem: Dell 8 Series USB xHCI HC [1028:05f9]
  229.     Kernel driver in use: xhci_hcd
  230.     Kernel modules: xhci_pci
  231. 00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 [8086:9c3a] (rev 04)
  232.     Subsystem: Dell 8 Series HECI [1028:05f9]
  233.     Kernel modules: mei_me
  234. 00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04)
  235.     Subsystem: Dell 8 Series HD Audio Controller [1028:05f9]
  236.     Kernel modules: snd_hda_intel
  237. 00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 1 [8086:9c10] (rev e4)
  238.     Kernel driver in use: pcieport
  239. 00:1c.2 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 3 [8086:9c14] (rev e4)
  240.     Kernel driver in use: pcieport
  241. 00:1c.3 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 4 [8086:9c16] (rev e4)
  242.     Kernel driver in use: pcieport
  243. 00:1c.4 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 5 [8086:9c18] (rev e4)
  244.     Kernel driver in use: pcieport
  245. 00:1d.0 USB controller [0c03]: Intel Corporation 8 Series USB EHCI #1 [8086:9c26] (rev 04)
  246.     Subsystem: Dell 8 Series USB EHCI [1028:05f9]
  247.     Kernel driver in use: ehci-pci
  248.     Kernel modules: ehci_pci
  249. 00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller [8086:9c43] (rev 04)
  250.     Subsystem: Dell 8 Series LPC Controller [1028:05f9]
  251.     Kernel modules: lpc_ich
  252. 00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] [8086:9c03] (rev 04)
  253.     Subsystem: Dell 8 Series SATA Controller 1 [AHCI mode] [1028:05f9]
  254.     Kernel driver in use: ahci
  255.     Kernel modules: ahci
  256. 00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] (rev 04)
  257.     Subsystem: Dell 8 Series SMBus Controller [1028:05f9]
  258.     Kernel modules: i2c_i801
  259. 02:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 73)
  260.     Subsystem: Intel Corporation Dual Band Wireless-N 7260 [8086:4460]
  261.     Kernel driver in use: iwlwifi
  262.     Kernel modules: iwlwifi
  263. 03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader [10ec:5287] (rev 01)
  264.     Subsystem: Dell RTL8411B PCI Express Card Reader [1028:05f9]
  265.     Kernel driver in use: rtsx_pci
  266.     Kernel modules: rtsx_pci
  267. 03:00.1 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 12)
  268.     Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1028:05f9]
  269.     Kernel driver in use: r8169
  270.     Kernel modules: r8169
  271. 04:00.0 3D controller [0302]: NVIDIA Corporation GK107M [GeForce GT 750M] [10de:0fe4] (rev a1)
  272.     Subsystem: Dell GK107M [GeForce GT 750M] [1028:05fa]
  273.     Kernel modules: nouveau
  274.  
  275. ******************************************
  276. lsusb
  277. ******************************************
  278. Bus 001 Device 002: ID 8087:8000 Intel Corp.
  279. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  280. Bus 003 Device 002: ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS561U two ports SATA 6Gb/s bridge
  281. Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  282. Bus 002 Device 006: ID 04f3:0208 Elan Microelectronics Corp.
  283. Bus 002 Device 005: ID 8087:07dc Intel Corp.
  284. Bus 002 Device 004: ID 0c45:6705 Microdia Integrated HD Webcam
  285. Bus 002 Device 003: ID 058f:6387 Alcor Micro Corp. Flash Drive
  286. Bus 002 Device 002: ID 145f:01c8 Trust
  287. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  288.  
  289. ******************************************
  290. fdisk -l
  291. ******************************************
  292. Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
  293. Disk model: Samsung SSD 860
  294. Units: sectors of 1 * 512 = 512 bytes
  295. Sector size (logical/physical): 512 bytes / 512 bytes
  296. I/O size (minimum/optimal): 512 bytes / 512 bytes
  297. Disklabel type: dos
  298. Disk identifier: 0x21719b95
  299.  
  300. Device     Boot     Start       End   Sectors   Size Id Type
  301. /dev/sda1  *         2048 943425535 943423488 449.9G 83 Linux
  302. /dev/sda2       943427582 976771071  33343490  15.9G  5 Extended
  303. /dev/sda5       943427584 976771071  33343488  15.9G 82 Linux swap / Solaris
  304.  
  305.  
  306. Disk /dev/sdb: 117.4 GiB, 126035288064 bytes, 246162672 sectors
  307. Disk model:                
  308. Units: sectors of 1 * 512 = 512 bytes
  309. Sector size (logical/physical): 512 bytes / 4096 bytes
  310. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  311. Disklabel type: dos
  312. Disk identifier: 0xe8ea225a
  313.  
  314. Device     Boot     Start       End   Sectors   Size Id Type
  315. /dev/sdb1            2048 212815871 212813824 101.5G 83 Linux
  316. /dev/sdb2       212817918 246161407  33343490  15.9G  5 Extended
  317. /dev/sdb5       212817920 246161407  33343488  15.9G 82 Linux swap / Solaris
  318.  
  319. Partition 2 does not start on physical sector boundary.
  320.  
  321.  
  322. Disk /dev/sdc: 3.8 GiB, 4057989120 bytes, 7925760 sectors
  323. Disk model: Flash Disk      
  324. Units: sectors of 1 * 512 = 512 bytes
  325. Sector size (logical/physical): 512 bytes / 512 bytes
  326. I/O size (minimum/optimal): 512 bytes / 512 bytes
  327. Disklabel type: dos
  328. Disk identifier: 0x76e24d80
  329.  
  330. Device     Boot Start     End Sectors  Size Id Type
  331. /dev/sdc1  *        0 7587327 7587328  3.6G  0 Empty
  332. /dev/sdc2       23336   28999    5664  2.8M ef EFI (FAT-12/16/32)
  333.  
  334. ******************************************
  335. blkid
  336. ******************************************
  337. /dev/sda1: UUID="00a254c7-6e85-401c-93b8-b342c7ee597a" TYPE="ext4" PARTUUID="21719b95-01"
  338. /dev/sda5: UUID="b7a4fe1b-7a0b-45aa-bd26-85a96be7c4c5" TYPE="swap" PARTUUID="21719b95-05"
  339. /dev/sdb1: UUID="71ccaf20-3b9c-40a0-aa47-ef227630f941" TYPE="ext4" PARTUUID="e8ea225a-01"
  340. /dev/sdb5: UUID="e761839c-ee97-4f3f-b22f-d134ce6b49b2" TYPE="swap" PARTUUID="e8ea225a-05"
  341. /dev/sdc1: UUID="2019-07-06-10-29-52-00" LABEL="Debian 10.0.0 amd64 1" TYPE="iso9660" PTUUID="76e24d80" PTTYPE="dos" PARTUUID="76e24d80-01"
  342. /dev/sdc2: SEC_TYPE="msdos" UUID="7841-4742" TYPE="vfat" PARTUUID="76e24d80-02"
  343.  
  344. ******************************************
  345. /etc/fstab
  346. ******************************************
  347. # /etc/fstab: static file system information.
  348. #
  349. # Use 'blkid' to print the universally unique identifier for a
  350. # device; this may be used with UUID= as a more robust way to name devices
  351. # that works even if disks are added and removed. See fstab(5).
  352. #
  353. # <file system> <mount point>   <type>  <options>       <dump>  <pass>
  354. # / was on /dev/sdc1 during installation
  355. UUID=71ccaf20-3b9c-40a0-aa47-ef227630f941 /               ext4    errors=remount-ro 0       1
  356. # swap was on /dev/sdc5 during installation
  357. UUID=e761839c-ee97-4f3f-b22f-d134ce6b49b2 none            swap    sw              0       0
  358.  
  359. ******************************************
  360. /etc/fstab.d/
  361. ******************************************
  362. La directory non esiste
  363.  
  364. ******************************************
  365. findmnt
  366. ******************************************
  367. TARGET  SOURCE    FSTYPE   OPTIONS
  368. /       /dev/sdb1 ext4     rw,relatime
  369. ├─/dev  devtmpfs  devtmpfs rw,relatime,size=8149976k,nr_inodes=2037494,mode=755
  370. ├─/proc none      proc     rw,relatime
  371. ├─/sys  none      sysfs    rw,relatime
  372. └─/run  none      tmpfs    rw,nosuid,relatime,size=1632356k,mode=755
  373.  
  374. ******************************************
  375. lsblk
  376. ******************************************
  377. NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
  378. sda      8:0    0 465.8G  0 disk
  379. ├─sda1   8:1    0 449.9G  0 part
  380. ├─sda2   8:2    0     1K  0 part
  381. └─sda5   8:5    0  15.9G  0 part
  382. sdb      8:16   0 117.4G  0 disk
  383. ├─sdb1   8:17   0 101.5G  0 part /
  384. ├─sdb2   8:18   0     1K  0 part
  385. └─sdb5   8:21   0  15.9G  0 part
  386. sdc      8:32   1   3.8G  0 disk
  387. ├─sdc1   8:33   1   3.6G  0 part
  388. └─sdc2   8:34   1   2.8M  0 part
  389.  
  390. ******************************************
  391. df
  392. ******************************************
  393. File system    1K-blocchi   Usati Disponib. Uso% Montato su
  394. /dev/sdb1       104212312 5579200  93296384   6% /
  395. devtmpfs          8149976       0   8149976   0% /dev
  396. none              1632356     136   1632220   1% /run
  397.  
  398. ******************************************
  399. /etc/modprobe.d/
  400. ******************************************
  401. La directory non contiene file o directory
  402.  
  403. ******************************************
  404. /etc/modules-load.d/
  405. ******************************************
  406. La directory contiene 1 file e 0 directory
  407. totale 20
  408. drwxr-xr-x   2 root root  4096 Aug  4 17:04 .
  409. drwxr-xr-x 124 root root 12288 Aug  4 17:19 ..
  410. -rw-r--r--   1 root root   119 Apr 10 17:13 cups-filters.conf
  411. lrwxrwxrwx   1 root root    10 May 24 22:58 modules.conf -> ../modules
  412.  
  413. ******************************************
  414. /etc/modules-load.d/cups-filters.conf
  415. ******************************************
  416. # Parallel printer driver modules loading for cups
  417. # LOAD_LP_MODULE was 'yes' in /etc/default/cups
  418. lp
  419. ppdev
  420. parport_pc
  421.  
  422. ******************************************
  423. /etc/modules-load.d/modules.conf
  424. ******************************************
  425. # /etc/modules: kernel modules to load at boot time.
  426. #
  427. # This file contains the names of kernel modules that should be loaded
  428. # at boot time, one per line. Lines beginning with "#" are ignored.
  429.  
  430.  
  431. ******************************************
  432. /etc/modules
  433. ******************************************
  434. # /etc/modules: kernel modules to load at boot time.
  435. #
  436. # This file contains the names of kernel modules that should be loaded
  437. # at boot time, one per line. Lines beginning with "#" are ignored.
  438.  
  439.  
  440. ******************************************
  441. /etc/apt/sources.list
  442. ******************************************
  443. #
  444.  
  445. # deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main non-free
  446.  
  447. #deb cdrom:[Debian GNU/Linux 10.0.0 _Buster_ - Official amd64 DVD Binary-1 20190706-10:24]/ buster contrib main non-free
  448.  
  449. deb http://ftp.it.debian.org/debian/ buster main non-free contrib
  450. deb-src http://ftp.it.debian.org/debian/ buster main non-free contrib
  451.  
  452. deb http://security.debian.org/debian-security buster/updates main contrib non-free
  453. deb-src http://security.debian.org/debian-security buster/updates main contrib non-free
  454.  
  455. # buster-updates, previously known as 'volatile'
  456. deb http://ftp.it.debian.org/debian/ buster-updates main contrib non-free
  457. deb-src http://ftp.it.debian.org/debian/ buster-updates main contrib non-free
  458.  
  459. # This system was installed using small removable media
  460. # (e.g. netinst, live or single CD). The matching "deb cdrom"
  461. # entries were disabled at the end of the installation process.
  462. # For information about how to configure apt package sources,
  463. # see the sources.list(5) manual.
  464.  
  465. ******************************************
  466. /etc/apt/sources.list.d/
  467. ******************************************
  468. La directory non contiene file o directory
  469.  
  470. ******************************************
  471. apt-cache policy
  472. ******************************************
  473. File dei pacchetti:
  474.  100 /var/lib/dpkg/status
  475.      release a=now
  476.  500 http://security.debian.org/debian-security buster/updates/main amd64 Packages
  477.      release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=amd64
  478.      origin security.debian.org
  479.  500 http://ftp.it.debian.org/debian buster/contrib amd64 Packages
  480.      release v=10.0,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=amd64
  481.      origin ftp.it.debian.org
  482.  500 http://ftp.it.debian.org/debian buster/non-free amd64 Packages
  483.      release v=10.0,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=amd64
  484.      origin ftp.it.debian.org
  485.  500 http://ftp.it.debian.org/debian buster/main amd64 Packages
  486.      release v=10.0,o=Debian,a=stable,n=buster,l=Debian,c=main,b=amd64
  487.      origin ftp.it.debian.org
  488. Pacchetti con gancio:
  489.  
  490. ******************************************
  491. apt-cache stats
  492. ******************************************
  493. Totale nomi dei pacchetti: 81789 (1636 k)
  494. Totale strutture dei pacchetti: 81988 (3607 k)
  495.   Pacchetti normali: 57243
  496.   Pacchetti virtuali puri: 480
  497.   Pacchetti virtuali singoli: 14106
  498.   Pacchetti virtuali misti: 459
  499.   Mancante: 9700
  500. Totale versioni distinte: 58185 (4655 k)
  501. Totale descrizioni distinte: 115887 (2781 k)
  502. Totale dipendenze: 384018/100785 (9293 k)
  503. Totale relazioni ver/file: 60051 (1441 k)
  504. Totale relazioni desc/file: 50351 (1208 k)
  505. Totale corrispondenze fornite: 17603 (422 k)
  506. Totale stringhe globalizzate: 175457 (3911 k)
  507. Totale spazio inutilizzato: 10.4 k
  508. Totale spazio occupato: 29.4 M
  509. Total buckets in PkgHashTable: 50503
  510.   Unused: 9942
  511.   Used: 40561
  512.   Utilization: 80.314%
  513.   Average entries: 2.02135
  514.   Longest: 59
  515.   Shortest: 1
  516. Total buckets in GrpHashTable: 50503
  517.   Unused: 9942
  518.   Used: 40561
  519.   Utilization: 80.314%
  520.   Average entries: 2.01644
  521.   Longest: 9
  522.   Shortest: 1
  523.  
  524. ******************************************
  525. dpkg --audit
  526. ******************************************
  527.  
  528. ******************************************
  529. apt-get check
  530. ******************************************
  531. Lettura elenco dei pacchetti...
  532. Generazione albero delle dipendenze...
  533. Lettura informazioni sullo stato...
  534.  
  535. ******************************************
  536. Firmware
  537. ******************************************
  538. ii  firmware-iwlwifi                      20190114-1                           all          Binary firmware for Intel Wireless cards
  539. ii  firmware-linux-free                   3.4                                  all          Binary firmware for various drivers in the Linux kernel
  540. ii  firmware-realtek                      20190114-1                           all          Binary firmware for Realtek wired/wifi/BT adapters
  541. ii  fwupd                                 1.2.5-2                              amd64        Firmware update daemon
  542. ii  fwupd-amd64-signed                    1.2.5+2                              amd64        Tools to manage UEFI firmware updates (signed)
  543. ii  libfwupd2:amd64                       1.2.5-2                              amd64        Firmware update daemon library
  544.  
  545. Contenuto di /usr/lib/firmware
  546. /usr/lib/firmware:
  547. totale 40288
  548. drwxr-xr-x  13 root root   12288 Aug  4 17:00 .
  549. drwxr-xr-x 138 root root    4096 Aug  4 17:05 ..
  550. drwxr-xr-x   2 root root    4096 Aug  4 16:32 RTL8192E
  551. drwxr-xr-x   2 root root    4096 Aug  4 16:23 av7110
  552. -rw-r--r--   1 root root   13388 Aug 16  2015 carl9170-1.fw
  553. drwxr-xr-x   2 root root    4096 Aug  4 16:23 cis
  554. drwxr-xr-x   2 root root    4096 Aug  4 16:23 dsp56k
  555. drwxr-xr-x   2 root root    4096 Oct  5  2018 hp
  556. drwxr-xr-x   2 root root    4096 Aug  4 16:32 intel
  557. drwxr-xr-x   2 root root    4096 Aug  4 16:23 isci
  558. -rw-r--r--   1 root root  337572 Jan 15  2019 iwlwifi-100-5.ucode
  559. -rw-r--r--   1 root root  337520 Jan 15  2019 iwlwifi-1000-5.ucode
  560. -rw-r--r--   1 root root  689680 Jan 15  2019 iwlwifi-105-6.ucode
  561. -rw-r--r--   1 root root  701228 Jan 15  2019 iwlwifi-135-6.ucode
  562. -rw-r--r--   1 root root  695876 Jan 15  2019 iwlwifi-2000-6.ucode
  563. -rw-r--r--   1 root root  707392 Jan 15  2019 iwlwifi-2030-6.ucode
  564. -rw-r--r--   1 root root  918268 Jan 15  2019 iwlwifi-3160-17.ucode
  565. -rw-r--r--   1 root root  669872 Jan 15  2019 iwlwifi-3160-9.ucode
  566. -rw-r--r--   1 root root 1028092 Jan 15  2019 iwlwifi-3168-22.ucode
  567. -rw-r--r--   1 root root 1036276 Jan 15  2019 iwlwifi-3168-29.ucode
  568. -rw-r--r--   1 root root  150100 Jan 15  2019 iwlwifi-3945-2.ucode
  569. -rw-r--r--   1 root root  187972 Jan 15  2019 iwlwifi-4965-2.ucode
  570. -rw-r--r--   1 root root  340696 Jan 15  2019 iwlwifi-5000-5.ucode
  571. -rw-r--r--   1 root root  337400 Jan 15  2019 iwlwifi-5150-2.ucode
  572. -rw-r--r--   1 root root  454608 Jan 15  2019 iwlwifi-6000-4.ucode
  573. -rw-r--r--   1 root root  444128 Jan 15  2019 iwlwifi-6000g2a-5.ucode
  574. -rw-r--r--   1 root root  677296 Jan 15  2019 iwlwifi-6000g2a-6.ucode
  575. -rw-r--r--   1 root root  679436 Jan 15  2019 iwlwifi-6000g2b-6.ucode
  576. -rw-r--r--   1 root root  469780 Jan 15  2019 iwlwifi-6050-5.ucode
  577. -rw-r--r--   1 root root 1049340 Jan 15  2019 iwlwifi-7260-17.ucode
  578. -rw-r--r--   1 root root  680508 Jan 15  2019 iwlwifi-7260-9.ucode
  579. -rw-r--r--   1 root root 1180412 Jan 15  2019 iwlwifi-7265-17.ucode
  580. -rw-r--r--   1 root root  697828 Jan 15  2019 iwlwifi-7265-9.ucode
  581. -rw-r--r--   1 root root 1028376 Jan 15  2019 iwlwifi-7265D-22.ucode
  582. -rw-r--r--   1 root root 1036432 Jan 15  2019 iwlwifi-7265D-29.ucode
  583. -rw-r--r--   1 root root 2120860 Jan 15  2019 iwlwifi-8000C-22.ucode
  584. -rw-r--r--   1 root root 2486572 Jan 15  2019 iwlwifi-8000C-36.ucode
  585. -rw-r--r--   1 root root 1811984 Jan 15  2019 iwlwifi-8265-22.ucode
  586. -rw-r--r--   1 root root 2498044 Jan 15  2019 iwlwifi-8265-36.ucode
  587. -rw-r--r--   1 root root 2678284 Jan 15  2019 iwlwifi-9000-pu-b0-jf-b0-34.ucode
  588. -rw-r--r--   1 root root 2520568 Jan 15  2019 iwlwifi-9000-pu-b0-jf-b0-38.ucode
  589. -rw-r--r--   1 root root 2620464 Jan 15  2019 iwlwifi-9000-pu-b0-jf-b0-41.ucode
  590. -rw-r--r--   1 root root 2678092 Jan 15  2019 iwlwifi-9260-th-b0-jf-b0-34.ucode
  591. -rw-r--r--   1 root root 2521412 Jan 15  2019 iwlwifi-9260-th-b0-jf-b0-38.ucode
  592. -rw-r--r--   1 root root 2620656 Jan 15  2019 iwlwifi-9260-th-b0-jf-b0-41.ucode
  593. drwxr-xr-x   2 root root    4096 Aug  4 16:23 keyspan_pda
  594. drwxr-xr-x   2 root root    4096 Aug  4 16:32 rtl_bt
  595. drwxr-xr-x   2 root root    4096 Aug  4 16:32 rtl_nic
  596. drwxr-xr-x   2 root root    4096 Aug  4 16:32 rtlwifi
  597. -rw-r--r--   1 root root    1770 Aug 16  2015 usbdux_firmware.bin
  598. -rw-r--r--   1 root root     999 Aug 16  2015 usbduxfast_firmware.bin
  599. -rw-r--r--   1 root root    8192 Aug 16  2015 usbduxsigma_firmware.bin
  600.  
  601. /usr/lib/firmware/RTL8192E:
  602. totale 68
  603. drwxr-xr-x  2 root root  4096 Aug  4 16:32 .
  604. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  605. -rw-r--r--  1 root root   344 Jan 15  2019 boot.img
  606. -rw-r--r--  1 root root   848 Jan 15  2019 data.img
  607. -rw-r--r--  1 root root 42944 Jan 15  2019 main.img
  608.  
  609. /usr/lib/firmware/av7110:
  610. totale 20
  611. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  612. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  613. -rw-r--r--  1 root root   212 Aug 16  2015 bootcode.bin
  614.  
  615. /usr/lib/firmware/cis:
  616. totale 80
  617. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  618. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  619. -rw-r--r--  1 root root   137 Aug 16  2015 3CCFEM556.cis
  620. -rw-r--r--  1 root root   134 Aug 16  2015 3CXEM556.cis
  621. -rw-r--r--  1 root root   109 Aug 16  2015 COMpad2.cis
  622. -rw-r--r--  1 root root    76 Aug 16  2015 COMpad4.cis
  623. -rw-r--r--  1 root root   136 Aug 16  2015 DP83903.cis
  624. -rw-r--r--  1 root root   253 Aug 16  2015 LA-PCM.cis
  625. -rw-r--r--  1 root root   107 Aug 16  2015 MT5634ZLX.cis
  626. -rw-r--r--  1 root root    54 Aug 16  2015 NE2K.cis
  627. -rw-r--r--  1 root root   210 Aug 16  2015 PCMLM28.cis
  628. -rw-r--r--  1 root root    68 Aug 16  2015 PE-200.cis
  629. -rw-r--r--  1 root root    74 Aug 16  2015 PE520.cis
  630. -rw-r--r--  1 root root    86 Aug 16  2015 RS-COM-2P.cis
  631. -rw-r--r--  1 root root   122 Aug 16  2015 SW_555_SER.cis
  632. -rw-r--r--  1 root root   140 Aug 16  2015 SW_7xx_SER.cis
  633. -rw-r--r--  1 root root   132 Aug 16  2015 SW_8xx_SER.cis
  634. -rw-r--r--  1 root root    85 Aug 16  2015 tamarack.cis
  635.  
  636. /usr/lib/firmware/dsp56k:
  637. totale 20
  638. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  639. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  640. -rw-r--r--  1 root root   375 Aug 16  2015 bootstrap.bin
  641.  
  642. /usr/lib/firmware/hp:
  643. totale 16
  644. drwxr-xr-x  2 root root  4096 Oct  5  2018 .
  645. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  646.  
  647. /usr/lib/firmware/intel:
  648. totale 3900
  649. drwxr-xr-x  2 root root   4096 Aug  4 16:32 .
  650. drwxr-xr-x 13 root root  12288 Aug  4 17:00 ..
  651. -rw-r--r--  1 root root     18 Jan 15  2019 ibt-11-5.ddc
  652. -rw-r--r--  1 root root 588196 Jan 15  2019 ibt-11-5.sfi
  653. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-12-16.ddc
  654. -rw-r--r--  1 root root 585328 Jan 15  2019 ibt-12-16.sfi
  655. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-17-0-1.ddc
  656. -rw-r--r--  1 root root 625216 Jan 15  2019 ibt-17-0-1.sfi
  657. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-17-16-1.ddc
  658. -rw-r--r--  1 root root 641280 Jan 15  2019 ibt-17-16-1.sfi
  659. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-18-0-1.ddc
  660. -rw-r--r--  1 root root 625216 Jan 15  2019 ibt-18-0-1.sfi
  661. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-18-16-1.ddc
  662. -rw-r--r--  1 root root 641280 Jan 15  2019 ibt-18-16-1.sfi
  663. -rw-r--r--  1 root root  22069 Jan 15  2019 ibt-hw-37.7.10-fw-1.0.1.2d.d.bseq
  664. -rw-r--r--  1 root root  25853 Jan 15  2019 ibt-hw-37.7.10-fw-1.0.2.3.d.bseq
  665. -rw-r--r--  1 root root  23105 Jan 15  2019 ibt-hw-37.7.10-fw-1.80.1.2d.d.bseq
  666. -rw-r--r--  1 root root  25775 Jan 15  2019 ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
  667. -rw-r--r--  1 root root     96 Jan 15  2019 ibt-hw-37.7.bseq
  668. -rw-r--r--  1 root root  31056 Jan 15  2019 ibt-hw-37.8.10-fw-1.10.2.27.d.bseq
  669. -rw-r--r--  1 root root  39295 Jan 15  2019 ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
  670. -rw-r--r--  1 root root  48587 Jan 15  2019 ibt-hw-37.8.10-fw-22.50.19.14.f.bseq
  671. -rw-r--r--  1 root root     96 Jan 15  2019 ibt-hw-37.8.bseq
  672.  
  673. /usr/lib/firmware/isci:
  674. totale 20
  675. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  676. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  677. -rw-r--r--  1 root root   232 Aug 16  2015 isci_firmware.bin
  678.  
  679. /usr/lib/firmware/keyspan_pda:
  680. totale 24
  681. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  682. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  683. -rw-r--r--  1 root root  1914 Aug 16  2015 keyspan_pda.fw
  684. -rw-r--r--  1 root root  2018 Aug 16  2015 xircom_pgs.fw
  685.  
  686. /usr/lib/firmware/rtl_bt:
  687. totale 472
  688. drwxr-xr-x  2 root root  4096 Aug  4 16:32 .
  689. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  690. -rw-r--r--  1 root root 38764 Jan 15  2019 rtl8192ee_fw.bin
  691. -rw-r--r--  1 root root 37904 Jan 15  2019 rtl8192eu_fw.bin
  692. -rw-r--r--  1 root root 24548 Jan 15  2019 rtl8723a_fw.bin
  693. -rw-r--r--  1 root root 45048 Jan 15  2019 rtl8723b_fw.bin
  694. -rw-r--r--  1 root root    10 Jan 15  2019 rtl8723d_config.bin
  695. -rw-r--r--  1 root root 47028 Jan 15  2019 rtl8723d_fw.bin
  696. -rw-r--r--  1 root root 74488 Jan 15  2019 rtl8761a_fw.bin
  697. -rw-r--r--  1 root root 40520 Jan 15  2019 rtl8812ae_fw.bin
  698. -rw-r--r--  1 root root 37420 Jan 15  2019 rtl8821a_fw.bin
  699. -rw-r--r--  1 root root    10 Jan 15  2019 rtl8821c_config.bin
  700. -rw-r--r--  1 root root 37356 Jan 15  2019 rtl8821c_fw.bin
  701. -rw-r--r--  1 root root    14 Jan 15  2019 rtl8822b_config.bin
  702. -rw-r--r--  1 root root 51176 Jan 15  2019 rtl8822b_fw.bin
  703.  
  704. /usr/lib/firmware/rtl_nic:
  705. totale 108
  706. drwxr-xr-x  2 root root  4096 Aug  4 16:32 .
  707. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  708. -rw-r--r--  1 root root  2076 Jan 15  2019 rtl8105e-1.fw
  709. -rw-r--r--  1 root root  1856 Jan 15  2019 rtl8106e-1.fw
  710. -rw-r--r--  1 root root   832 Jan 15  2019 rtl8106e-2.fw
  711. -rw-r--r--  1 root root   992 Jan 15  2019 rtl8107e-1.fw
  712. -rw-r--r--  1 root root   976 Jan 15  2019 rtl8107e-2.fw
  713. -rw-r--r--  1 root root  1492 Jan 15  2019 rtl8168d-1.fw
  714. -rw-r--r--  1 root root  1324 Jan 15  2019 rtl8168d-2.fw
  715. -rw-r--r--  1 root root  5500 Jan 15  2019 rtl8168e-1.fw
  716. -rw-r--r--  1 root root  3920 Jan 15  2019 rtl8168e-2.fw
  717. -rw-r--r--  1 root root  3872 Jan 15  2019 rtl8168e-3.fw
  718. -rw-r--r--  1 root root  3424 Jan 15  2019 rtl8168f-1.fw
  719. -rw-r--r--  1 root root  1232 Jan 15  2019 rtl8168f-2.fw
  720. -rw-r--r--  1 root root  4304 Jan 15  2019 rtl8168g-1.fw
  721. -rw-r--r--  1 root root  4896 Jan 15  2019 rtl8168g-2.fw
  722. -rw-r--r--  1 root root   832 Jan 15  2019 rtl8168g-3.fw
  723. -rw-r--r--  1 root root   992 Jan 15  2019 rtl8168h-1.fw
  724. -rw-r--r--  1 root root   976 Jan 15  2019 rtl8168h-2.fw
  725. -rw-r--r--  1 root root  1824 Jan 15  2019 rtl8402-1.fw
  726. -rw-r--r--  1 root root  2112 Jan 15  2019 rtl8411-1.fw
  727. -rw-r--r--  1 root root  1040 Jan 15  2019 rtl8411-2.fw
  728.  
  729. /usr/lib/firmware/rtlwifi:
  730. totale 1016
  731. drwxr-xr-x  2 root root   4096 Aug  4 16:32 .
  732. drwxr-xr-x 13 root root  12288 Aug  4 17:00 ..
  733. -rw-r--r--  1 root root  11216 Jan 15  2019 rtl8188efw.bin
  734. -rw-r--r--  1 root root  13904 Jan 15  2019 rtl8188eufw.bin
  735. -rw-r--r--  1 root root  16192 Jan 15  2019 rtl8192cfw.bin
  736. -rw-r--r--  1 root root  14818 Jan 15  2019 rtl8192cfwU.bin
  737. -rw-r--r--  1 root root  16332 Jan 15  2019 rtl8192cfwU_B.bin
  738. -rw-r--r--  1 root root  16014 Jan 15  2019 rtl8192cufw.bin
  739. -rw-r--r--  1 root root  16116 Jan 15  2019 rtl8192cufw_A.bin
  740. -rw-r--r--  1 root root  16096 Jan 15  2019 rtl8192cufw_B.bin
  741. -rw-r--r--  1 root root  16116 Jan 15  2019 rtl8192cufw_TMSC.bin
  742. -rw-r--r--  1 root root  31376 Jan 15  2019 rtl8192defw.bin
  743. -rw-r--r--  1 root root  31818 Jan 15  2019 rtl8192eefw.bin
  744. -rw-r--r--  1 root root  31818 Jan 15  2019 rtl8192eu_nic.bin
  745. -rw-r--r--  1 root root  25878 Jan 15  2019 rtl8192eu_wowlan.bin
  746. -rw-r--r--  1 root root  80208 Jan 15  2019 rtl8192sefw.bin
  747. -rw-r--r--  1 root root 122328 Jan 15  2019 rtl8712u.bin
  748. -rw-r--r--  1 root root  22172 Jan 15  2019 rtl8723aufw_A.bin
  749. -rw-r--r--  1 root root  24118 Jan 15  2019 rtl8723aufw_B.bin
  750. -rw-r--r--  1 root root  19200 Jan 15  2019 rtl8723aufw_B_NoBT.bin
  751. -rw-r--r--  1 root root  30746 Jan 15  2019 rtl8723befw.bin
  752. -rw-r--r--  1 root root  31762 Jan 15  2019 rtl8723befw_36.bin
  753. -rw-r--r--  1 root root   9120 Jan 15  2019 rtl8723bs_bt.bin
  754. -rw-r--r--  1 root root  32108 Jan 15  2019 rtl8723bs_nic.bin
  755. -rw-r--r--  1 root root  26398 Jan 15  2019 rtl8723bs_wowlan.bin
  756. -rw-r--r--  1 root root  32108 Jan 15  2019 rtl8723bu_nic.bin
  757. -rw-r--r--  1 root root  26398 Jan 15  2019 rtl8723bu_wowlan.bin
  758. -rw-r--r--  1 root root  27726 Jan 15  2019 rtl8723defw.bin
  759. -rw-r--r--  1 root root  11662 Jan 15  2019 rtl8723fw.bin
  760. -rw-r--r--  1 root root  22996 Jan 15  2019 rtl8723fw_B.bin
  761. -rw-r--r--  1 root root  28984 Jan 15  2019 rtl8821aefw.bin
  762. -rw-r--r--  1 root root  28348 Jan 15  2019 rtl8821aefw_29.bin
  763. -rw-r--r--  1 root root  19858 Jan 15  2019 rtl8821aefw_wowlan.bin
  764. -rw-r--r--  1 root root 127496 Jan 15  2019 rtl8822befw.bin
  765.  
  766. /usr/local/lib/firmware non trovata
  767.  
  768. Contenuto di /lib/firmware
  769. /lib/firmware:
  770. totale 40288
  771. drwxr-xr-x  13 root root   12288 Aug  4 17:00 .
  772. drwxr-xr-x 138 root root    4096 Aug  4 17:05 ..
  773. drwxr-xr-x   2 root root    4096 Aug  4 16:32 RTL8192E
  774. drwxr-xr-x   2 root root    4096 Aug  4 16:23 av7110
  775. -rw-r--r--   1 root root   13388 Aug 16  2015 carl9170-1.fw
  776. drwxr-xr-x   2 root root    4096 Aug  4 16:23 cis
  777. drwxr-xr-x   2 root root    4096 Aug  4 16:23 dsp56k
  778. drwxr-xr-x   2 root root    4096 Oct  5  2018 hp
  779. drwxr-xr-x   2 root root    4096 Aug  4 16:32 intel
  780. drwxr-xr-x   2 root root    4096 Aug  4 16:23 isci
  781. -rw-r--r--   1 root root  337572 Jan 15  2019 iwlwifi-100-5.ucode
  782. -rw-r--r--   1 root root  337520 Jan 15  2019 iwlwifi-1000-5.ucode
  783. -rw-r--r--   1 root root  689680 Jan 15  2019 iwlwifi-105-6.ucode
  784. -rw-r--r--   1 root root  701228 Jan 15  2019 iwlwifi-135-6.ucode
  785. -rw-r--r--   1 root root  695876 Jan 15  2019 iwlwifi-2000-6.ucode
  786. -rw-r--r--   1 root root  707392 Jan 15  2019 iwlwifi-2030-6.ucode
  787. -rw-r--r--   1 root root  918268 Jan 15  2019 iwlwifi-3160-17.ucode
  788. -rw-r--r--   1 root root  669872 Jan 15  2019 iwlwifi-3160-9.ucode
  789. -rw-r--r--   1 root root 1028092 Jan 15  2019 iwlwifi-3168-22.ucode
  790. -rw-r--r--   1 root root 1036276 Jan 15  2019 iwlwifi-3168-29.ucode
  791. -rw-r--r--   1 root root  150100 Jan 15  2019 iwlwifi-3945-2.ucode
  792. -rw-r--r--   1 root root  187972 Jan 15  2019 iwlwifi-4965-2.ucode
  793. -rw-r--r--   1 root root  340696 Jan 15  2019 iwlwifi-5000-5.ucode
  794. -rw-r--r--   1 root root  337400 Jan 15  2019 iwlwifi-5150-2.ucode
  795. -rw-r--r--   1 root root  454608 Jan 15  2019 iwlwifi-6000-4.ucode
  796. -rw-r--r--   1 root root  444128 Jan 15  2019 iwlwifi-6000g2a-5.ucode
  797. -rw-r--r--   1 root root  677296 Jan 15  2019 iwlwifi-6000g2a-6.ucode
  798. -rw-r--r--   1 root root  679436 Jan 15  2019 iwlwifi-6000g2b-6.ucode
  799. -rw-r--r--   1 root root  469780 Jan 15  2019 iwlwifi-6050-5.ucode
  800. -rw-r--r--   1 root root 1049340 Jan 15  2019 iwlwifi-7260-17.ucode
  801. -rw-r--r--   1 root root  680508 Jan 15  2019 iwlwifi-7260-9.ucode
  802. -rw-r--r--   1 root root 1180412 Jan 15  2019 iwlwifi-7265-17.ucode
  803. -rw-r--r--   1 root root  697828 Jan 15  2019 iwlwifi-7265-9.ucode
  804. -rw-r--r--   1 root root 1028376 Jan 15  2019 iwlwifi-7265D-22.ucode
  805. -rw-r--r--   1 root root 1036432 Jan 15  2019 iwlwifi-7265D-29.ucode
  806. -rw-r--r--   1 root root 2120860 Jan 15  2019 iwlwifi-8000C-22.ucode
  807. -rw-r--r--   1 root root 2486572 Jan 15  2019 iwlwifi-8000C-36.ucode
  808. -rw-r--r--   1 root root 1811984 Jan 15  2019 iwlwifi-8265-22.ucode
  809. -rw-r--r--   1 root root 2498044 Jan 15  2019 iwlwifi-8265-36.ucode
  810. -rw-r--r--   1 root root 2678284 Jan 15  2019 iwlwifi-9000-pu-b0-jf-b0-34.ucode
  811. -rw-r--r--   1 root root 2520568 Jan 15  2019 iwlwifi-9000-pu-b0-jf-b0-38.ucode
  812. -rw-r--r--   1 root root 2620464 Jan 15  2019 iwlwifi-9000-pu-b0-jf-b0-41.ucode
  813. -rw-r--r--   1 root root 2678092 Jan 15  2019 iwlwifi-9260-th-b0-jf-b0-34.ucode
  814. -rw-r--r--   1 root root 2521412 Jan 15  2019 iwlwifi-9260-th-b0-jf-b0-38.ucode
  815. -rw-r--r--   1 root root 2620656 Jan 15  2019 iwlwifi-9260-th-b0-jf-b0-41.ucode
  816. drwxr-xr-x   2 root root    4096 Aug  4 16:23 keyspan_pda
  817. drwxr-xr-x   2 root root    4096 Aug  4 16:32 rtl_bt
  818. drwxr-xr-x   2 root root    4096 Aug  4 16:32 rtl_nic
  819. drwxr-xr-x   2 root root    4096 Aug  4 16:32 rtlwifi
  820. -rw-r--r--   1 root root    1770 Aug 16  2015 usbdux_firmware.bin
  821. -rw-r--r--   1 root root     999 Aug 16  2015 usbduxfast_firmware.bin
  822. -rw-r--r--   1 root root    8192 Aug 16  2015 usbduxsigma_firmware.bin
  823.  
  824. /lib/firmware/RTL8192E:
  825. totale 68
  826. drwxr-xr-x  2 root root  4096 Aug  4 16:32 .
  827. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  828. -rw-r--r--  1 root root   344 Jan 15  2019 boot.img
  829. -rw-r--r--  1 root root   848 Jan 15  2019 data.img
  830. -rw-r--r--  1 root root 42944 Jan 15  2019 main.img
  831.  
  832. /lib/firmware/av7110:
  833. totale 20
  834. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  835. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  836. -rw-r--r--  1 root root   212 Aug 16  2015 bootcode.bin
  837.  
  838. /lib/firmware/cis:
  839. totale 80
  840. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  841. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  842. -rw-r--r--  1 root root   137 Aug 16  2015 3CCFEM556.cis
  843. -rw-r--r--  1 root root   134 Aug 16  2015 3CXEM556.cis
  844. -rw-r--r--  1 root root   109 Aug 16  2015 COMpad2.cis
  845. -rw-r--r--  1 root root    76 Aug 16  2015 COMpad4.cis
  846. -rw-r--r--  1 root root   136 Aug 16  2015 DP83903.cis
  847. -rw-r--r--  1 root root   253 Aug 16  2015 LA-PCM.cis
  848. -rw-r--r--  1 root root   107 Aug 16  2015 MT5634ZLX.cis
  849. -rw-r--r--  1 root root    54 Aug 16  2015 NE2K.cis
  850. -rw-r--r--  1 root root   210 Aug 16  2015 PCMLM28.cis
  851. -rw-r--r--  1 root root    68 Aug 16  2015 PE-200.cis
  852. -rw-r--r--  1 root root    74 Aug 16  2015 PE520.cis
  853. -rw-r--r--  1 root root    86 Aug 16  2015 RS-COM-2P.cis
  854. -rw-r--r--  1 root root   122 Aug 16  2015 SW_555_SER.cis
  855. -rw-r--r--  1 root root   140 Aug 16  2015 SW_7xx_SER.cis
  856. -rw-r--r--  1 root root   132 Aug 16  2015 SW_8xx_SER.cis
  857. -rw-r--r--  1 root root    85 Aug 16  2015 tamarack.cis
  858.  
  859. /lib/firmware/dsp56k:
  860. totale 20
  861. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  862. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  863. -rw-r--r--  1 root root   375 Aug 16  2015 bootstrap.bin
  864.  
  865. /lib/firmware/hp:
  866. totale 16
  867. drwxr-xr-x  2 root root  4096 Oct  5  2018 .
  868. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  869.  
  870. /lib/firmware/intel:
  871. totale 3900
  872. drwxr-xr-x  2 root root   4096 Aug  4 16:32 .
  873. drwxr-xr-x 13 root root  12288 Aug  4 17:00 ..
  874. -rw-r--r--  1 root root     18 Jan 15  2019 ibt-11-5.ddc
  875. -rw-r--r--  1 root root 588196 Jan 15  2019 ibt-11-5.sfi
  876. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-12-16.ddc
  877. -rw-r--r--  1 root root 585328 Jan 15  2019 ibt-12-16.sfi
  878. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-17-0-1.ddc
  879. -rw-r--r--  1 root root 625216 Jan 15  2019 ibt-17-0-1.sfi
  880. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-17-16-1.ddc
  881. -rw-r--r--  1 root root 641280 Jan 15  2019 ibt-17-16-1.sfi
  882. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-18-0-1.ddc
  883. -rw-r--r--  1 root root 625216 Jan 15  2019 ibt-18-0-1.sfi
  884. -rw-r--r--  1 root root     14 Jan 15  2019 ibt-18-16-1.ddc
  885. -rw-r--r--  1 root root 641280 Jan 15  2019 ibt-18-16-1.sfi
  886. -rw-r--r--  1 root root  22069 Jan 15  2019 ibt-hw-37.7.10-fw-1.0.1.2d.d.bseq
  887. -rw-r--r--  1 root root  25853 Jan 15  2019 ibt-hw-37.7.10-fw-1.0.2.3.d.bseq
  888. -rw-r--r--  1 root root  23105 Jan 15  2019 ibt-hw-37.7.10-fw-1.80.1.2d.d.bseq
  889. -rw-r--r--  1 root root  25775 Jan 15  2019 ibt-hw-37.7.10-fw-1.80.2.3.d.bseq
  890. -rw-r--r--  1 root root     96 Jan 15  2019 ibt-hw-37.7.bseq
  891. -rw-r--r--  1 root root  31056 Jan 15  2019 ibt-hw-37.8.10-fw-1.10.2.27.d.bseq
  892. -rw-r--r--  1 root root  39295 Jan 15  2019 ibt-hw-37.8.10-fw-1.10.3.11.e.bseq
  893. -rw-r--r--  1 root root  48587 Jan 15  2019 ibt-hw-37.8.10-fw-22.50.19.14.f.bseq
  894. -rw-r--r--  1 root root     96 Jan 15  2019 ibt-hw-37.8.bseq
  895.  
  896. /lib/firmware/isci:
  897. totale 20
  898. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  899. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  900. -rw-r--r--  1 root root   232 Aug 16  2015 isci_firmware.bin
  901.  
  902. /lib/firmware/keyspan_pda:
  903. totale 24
  904. drwxr-xr-x  2 root root  4096 Aug  4 16:23 .
  905. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  906. -rw-r--r--  1 root root  1914 Aug 16  2015 keyspan_pda.fw
  907. -rw-r--r--  1 root root  2018 Aug 16  2015 xircom_pgs.fw
  908.  
  909. /lib/firmware/rtl_bt:
  910. totale 472
  911. drwxr-xr-x  2 root root  4096 Aug  4 16:32 .
  912. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  913. -rw-r--r--  1 root root 38764 Jan 15  2019 rtl8192ee_fw.bin
  914. -rw-r--r--  1 root root 37904 Jan 15  2019 rtl8192eu_fw.bin
  915. -rw-r--r--  1 root root 24548 Jan 15  2019 rtl8723a_fw.bin
  916. -rw-r--r--  1 root root 45048 Jan 15  2019 rtl8723b_fw.bin
  917. -rw-r--r--  1 root root    10 Jan 15  2019 rtl8723d_config.bin
  918. -rw-r--r--  1 root root 47028 Jan 15  2019 rtl8723d_fw.bin
  919. -rw-r--r--  1 root root 74488 Jan 15  2019 rtl8761a_fw.bin
  920. -rw-r--r--  1 root root 40520 Jan 15  2019 rtl8812ae_fw.bin
  921. -rw-r--r--  1 root root 37420 Jan 15  2019 rtl8821a_fw.bin
  922. -rw-r--r--  1 root root    10 Jan 15  2019 rtl8821c_config.bin
  923. -rw-r--r--  1 root root 37356 Jan 15  2019 rtl8821c_fw.bin
  924. -rw-r--r--  1 root root    14 Jan 15  2019 rtl8822b_config.bin
  925. -rw-r--r--  1 root root 51176 Jan 15  2019 rtl8822b_fw.bin
  926.  
  927. /lib/firmware/rtl_nic:
  928. totale 108
  929. drwxr-xr-x  2 root root  4096 Aug  4 16:32 .
  930. drwxr-xr-x 13 root root 12288 Aug  4 17:00 ..
  931. -rw-r--r--  1 root root  2076 Jan 15  2019 rtl8105e-1.fw
  932. -rw-r--r--  1 root root  1856 Jan 15  2019 rtl8106e-1.fw
  933. -rw-r--r--  1 root root   832 Jan 15  2019 rtl8106e-2.fw
  934. -rw-r--r--  1 root root   992 Jan 15  2019 rtl8107e-1.fw
  935. -rw-r--r--  1 root root   976 Jan 15  2019 rtl8107e-2.fw
  936. -rw-r--r--  1 root root  1492 Jan 15  2019 rtl8168d-1.fw
  937. -rw-r--r--  1 root root  1324 Jan 15  2019 rtl8168d-2.fw
  938. -rw-r--r--  1 root root  5500 Jan 15  2019 rtl8168e-1.fw
  939. -rw-r--r--  1 root root  3920 Jan 15  2019 rtl8168e-2.fw
  940. -rw-r--r--  1 root root  3872 Jan 15  2019 rtl8168e-3.fw
  941. -rw-r--r--  1 root root  3424 Jan 15  2019 rtl8168f-1.fw
  942. -rw-r--r--  1 root root  1232 Jan 15  2019 rtl8168f-2.fw
  943. -rw-r--r--  1 root root  4304 Jan 15  2019 rtl8168g-1.fw
  944. -rw-r--r--  1 root root  4896 Jan 15  2019 rtl8168g-2.fw
  945. -rw-r--r--  1 root root   832 Jan 15  2019 rtl8168g-3.fw
  946. -rw-r--r--  1 root root   992 Jan 15  2019 rtl8168h-1.fw
  947. -rw-r--r--  1 root root   976 Jan 15  2019 rtl8168h-2.fw
  948. -rw-r--r--  1 root root  1824 Jan 15  2019 rtl8402-1.fw
  949. -rw-r--r--  1 root root  2112 Jan 15  2019 rtl8411-1.fw
  950. -rw-r--r--  1 root root  1040 Jan 15  2019 rtl8411-2.fw
  951.  
  952. /lib/firmware/rtlwifi:
  953. totale 1016
  954. drwxr-xr-x  2 root root   4096 Aug  4 16:32 .
  955. drwxr-xr-x 13 root root  12288 Aug  4 17:00 ..
  956. -rw-r--r--  1 root root  11216 Jan 15  2019 rtl8188efw.bin
  957. -rw-r--r--  1 root root  13904 Jan 15  2019 rtl8188eufw.bin
  958. -rw-r--r--  1 root root  16192 Jan 15  2019 rtl8192cfw.bin
  959. -rw-r--r--  1 root root  14818 Jan 15  2019 rtl8192cfwU.bin
  960. -rw-r--r--  1 root root  16332 Jan 15  2019 rtl8192cfwU_B.bin
  961. -rw-r--r--  1 root root  16014 Jan 15  2019 rtl8192cufw.bin
  962. -rw-r--r--  1 root root  16116 Jan 15  2019 rtl8192cufw_A.bin
  963. -rw-r--r--  1 root root  16096 Jan 15  2019 rtl8192cufw_B.bin
  964. -rw-r--r--  1 root root  16116 Jan 15  2019 rtl8192cufw_TMSC.bin
  965. -rw-r--r--  1 root root  31376 Jan 15  2019 rtl8192defw.bin
  966. -rw-r--r--  1 root root  31818 Jan 15  2019 rtl8192eefw.bin
  967. -rw-r--r--  1 root root  31818 Jan 15  2019 rtl8192eu_nic.bin
  968. -rw-r--r--  1 root root  25878 Jan 15  2019 rtl8192eu_wowlan.bin
  969. -rw-r--r--  1 root root  80208 Jan 15  2019 rtl8192sefw.bin
  970. -rw-r--r--  1 root root 122328 Jan 15  2019 rtl8712u.bin
  971. -rw-r--r--  1 root root  22172 Jan 15  2019 rtl8723aufw_A.bin
  972. -rw-r--r--  1 root root  24118 Jan 15  2019 rtl8723aufw_B.bin
  973. -rw-r--r--  1 root root  19200 Jan 15  2019 rtl8723aufw_B_NoBT.bin
  974. -rw-r--r--  1 root root  30746 Jan 15  2019 rtl8723befw.bin
  975. -rw-r--r--  1 root root  31762 Jan 15  2019 rtl8723befw_36.bin
  976. -rw-r--r--  1 root root   9120 Jan 15  2019 rtl8723bs_bt.bin
  977. -rw-r--r--  1 root root  32108 Jan 15  2019 rtl8723bs_nic.bin
  978. -rw-r--r--  1 root root  26398 Jan 15  2019 rtl8723bs_wowlan.bin
  979. -rw-r--r--  1 root root  32108 Jan 15  2019 rtl8723bu_nic.bin
  980. -rw-r--r--  1 root root  26398 Jan 15  2019 rtl8723bu_wowlan.bin
  981. -rw-r--r--  1 root root  27726 Jan 15  2019 rtl8723defw.bin
  982. -rw-r--r--  1 root root  11662 Jan 15  2019 rtl8723fw.bin
  983. -rw-r--r--  1 root root  22996 Jan 15  2019 rtl8723fw_B.bin
  984. -rw-r--r--  1 root root  28984 Jan 15  2019 rtl8821aefw.bin
  985. -rw-r--r--  1 root root  28348 Jan 15  2019 rtl8821aefw_29.bin
  986. -rw-r--r--  1 root root  19858 Jan 15  2019 rtl8821aefw_wowlan.bin
  987. -rw-r--r--  1 root root 127496 Jan 15  2019 rtl8822befw.bin
  988.  
  989. /run/udev/firmware-missing non trovata
  990.  
  991.  
  992. ******************************************
  993. Pacchetti esterni all'archivio "stable"
  994. ******************************************
  995. Nessun pacchetto esterno installato
  996.  
  997. ******************************************
  998. Pacchetti che contengono "linux-headers"
  999. ******************************************
  1000. Nessun pacchetto installato
  1001.  
  1002. ******************************************
  1003. Pacchetti che contengono "linux-image"
  1004. ******************************************
  1005. ii  linux-image-4.19.0-5-amd64            4.19.37-5+deb10u1                    amd64        Linux 4.19 for 64-bit PCs (signed)
  1006. ii  linux-image-amd64                     4.19+105                             amd64        Linux for 64-bit PCs (meta-package)
  1007.  
  1008. ******************************************
  1009. dkms status
  1010. ******************************************
  1011. Comando "/usr/sbin/dkms" non trovato
  1012.  
  1013. ******************************************
  1014. /etc/default/grub
  1015. ******************************************
  1016. # If you change this file, run 'update-grub' afterwards to update
  1017. # /boot/grub/grub.cfg.
  1018. # For full documentation of the options in this file, see:
  1019. #   info -f grub -n 'Simple configuration'
  1020.  
  1021. GRUB_DEFAULT=0
  1022. GRUB_TIMEOUT=5
  1023. GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
  1024. GRUB_CMDLINE_LINUX_DEFAULT="quiet"
  1025. GRUB_CMDLINE_LINUX=""
  1026.  
  1027. # Uncomment to enable BadRAM filtering, modify to suit your needs
  1028. # This works with Linux (no patch required) and with any kernel that obtains
  1029. # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
  1030. #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
  1031.  
  1032. # Uncomment to disable graphical terminal (grub-pc only)
  1033. #GRUB_TERMINAL=console
  1034.  
  1035. # The resolution used on graphical terminal
  1036. # note that you can use only modes which your graphic card supports via VBE
  1037. # you can see them in real GRUB with the command `vbeinfo'
  1038. #GRUB_GFXMODE=640x480
  1039.  
  1040. # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
  1041. #GRUB_DISABLE_LINUX_UUID=true
  1042.  
  1043. # Uncomment to disable generation of recovery mode menu entries
  1044. #GRUB_DISABLE_RECOVERY="true"
  1045.  
  1046. # Uncomment to get a beep at grub start
  1047. #GRUB_INIT_TUNE="480 440 1"
  1048.  
  1049. ******************************************
  1050. /boot/grub/grub.cfg
  1051. ******************************************
  1052. #
  1053. # DO NOT EDIT THIS FILE
  1054. #
  1055. # It is automatically generated by grub-mkconfig using templates
  1056. # from /etc/grub.d and settings from /etc/default/grub
  1057. #
  1058.  
  1059. ### BEGIN /etc/grub.d/00_header ###
  1060. if [ -s $prefix/grubenv ]; then
  1061.   set have_grubenv=true
  1062.   load_env
  1063. fi
  1064. if [ "${next_entry}" ] ; then
  1065.    set default="${next_entry}"
  1066.    set next_entry=
  1067.    save_env next_entry
  1068.    set boot_once=true
  1069. else
  1070.    set default="0"
  1071. fi
  1072.  
  1073. if [ x"${feature_menuentry_id}" = xy ]; then
  1074.   menuentry_id_option="--id"
  1075. else
  1076.   menuentry_id_option=""
  1077. fi
  1078.  
  1079. export menuentry_id_option
  1080.  
  1081. if [ "${prev_saved_entry}" ]; then
  1082.   set saved_entry="${prev_saved_entry}"
  1083.   save_env saved_entry
  1084.   set prev_saved_entry=
  1085.   save_env prev_saved_entry
  1086.   set boot_once=true
  1087. fi
  1088.  
  1089. function savedefault {
  1090.   if [ -z "${boot_once}" ]; then
  1091.     saved_entry="${chosen}"
  1092.     save_env saved_entry
  1093.   fi
  1094. }
  1095. function load_video {
  1096.   if [ x$feature_all_video_module = xy ]; then
  1097.     insmod all_video
  1098.   else
  1099.     insmod efi_gop
  1100.     insmod efi_uga
  1101.     insmod ieee1275_fb
  1102.     insmod vbe
  1103.     insmod vga
  1104.     insmod video_bochs
  1105.     insmod video_cirrus
  1106.   fi
  1107. }
  1108.  
  1109. if [ x$feature_default_font_path = xy ] ; then
  1110.    font=unicode
  1111. else
  1112. insmod part_msdos
  1113. insmod ext2
  1114. set root='hd1,msdos1'
  1115. if [ x$feature_platform_search_hint = xy ]; then
  1116.   search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  71ccaf20-3b9c-40a0-aa47-ef227630f941
  1117. else
  1118.   search --no-floppy --fs-uuid --set=root 71ccaf20-3b9c-40a0-aa47-ef227630f941
  1119. fi
  1120.     font="/usr/share/grub/unicode.pf2"
  1121. fi
  1122.  
  1123. if loadfont $font ; then
  1124.   set gfxmode=auto
  1125.   load_video
  1126.   insmod gfxterm
  1127.   set locale_dir=$prefix/locale
  1128.   set lang=C
  1129.   insmod gettext
  1130. fi
  1131. terminal_output gfxterm
  1132. if [ "${recordfail}" = 1 ] ; then
  1133.   set timeout=30
  1134. else
  1135.   if [ x$feature_timeout_style = xy ] ; then
  1136.     set timeout_style=menu
  1137.     set timeout=5
  1138.   # Fallback normal timeout code in case the timeout_style feature is
  1139.   # unavailable.
  1140.   else
  1141.     set timeout=5
  1142.   fi
  1143. fi
  1144. ### END /etc/grub.d/00_header ###
  1145.  
  1146. ### BEGIN /etc/grub.d/05_debian_theme ###
  1147. insmod part_msdos
  1148. insmod ext2
  1149. set root='hd1,msdos1'
  1150. if [ x$feature_platform_search_hint = xy ]; then
  1151.   search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  71ccaf20-3b9c-40a0-aa47-ef227630f941
  1152. else
  1153.   search --no-floppy --fs-uuid --set=root 71ccaf20-3b9c-40a0-aa47-ef227630f941
  1154. fi
  1155. insmod png
  1156. if background_image /usr/share/desktop-base/futureprototype-theme/grub/grub-4x3.png; then
  1157.   set color_normal=white/black
  1158.   set color_highlight=black/white
  1159. else
  1160.   set menu_color_normal=cyan/blue
  1161.   set menu_color_highlight=white/blue
  1162. fi
  1163. ### END /etc/grub.d/05_debian_theme ###
  1164.  
  1165. ### BEGIN /etc/grub.d/10_linux ###
  1166. function gfxmode {
  1167.     set gfxpayload="${1}"
  1168. }
  1169. set linux_gfx_mode=
  1170. export linux_gfx_mode
  1171. menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-71ccaf20-3b9c-40a0-aa47-ef227630f941' {
  1172.     load_video
  1173.     insmod gzio
  1174.     if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  1175.     insmod part_msdos
  1176.     insmod ext2
  1177.     set root='hd1,msdos1'
  1178.     if [ x$feature_platform_search_hint = xy ]; then
  1179.       search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  71ccaf20-3b9c-40a0-aa47-ef227630f941
  1180.     else
  1181.       search --no-floppy --fs-uuid --set=root 71ccaf20-3b9c-40a0-aa47-ef227630f941
  1182.     fi
  1183.     echo    'Caricamento Linux 4.19.0-5-amd64...'
  1184.     linux   /boot/vmlinuz-4.19.0-5-amd64 root=UUID=71ccaf20-3b9c-40a0-aa47-ef227630f941 ro  quiet
  1185.     echo    'Caricamento ramdisk iniziale...'
  1186.     initrd  /boot/initrd.img-4.19.0-5-amd64
  1187. }
  1188. submenu 'Opzioni avanzate per Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-71ccaf20-3b9c-40a0-aa47-ef227630f941' {
  1189.     menuentry 'Debian GNU/Linux, con Linux 4.19.0-5-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-5-amd64-advanced-71ccaf20-3b9c-40a0-aa47-ef227630f941' {
  1190.         load_video
  1191.         insmod gzio
  1192.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  1193.         insmod part_msdos
  1194.         insmod ext2
  1195.         set root='hd1,msdos1'
  1196.         if [ x$feature_platform_search_hint = xy ]; then
  1197.           search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  71ccaf20-3b9c-40a0-aa47-ef227630f941
  1198.         else
  1199.           search --no-floppy --fs-uuid --set=root 71ccaf20-3b9c-40a0-aa47-ef227630f941
  1200.         fi
  1201.         echo    'Caricamento Linux 4.19.0-5-amd64...'
  1202.         linux   /boot/vmlinuz-4.19.0-5-amd64 root=UUID=71ccaf20-3b9c-40a0-aa47-ef227630f941 ro  quiet
  1203.         echo    'Caricamento ramdisk iniziale...'
  1204.         initrd  /boot/initrd.img-4.19.0-5-amd64
  1205.     }
  1206.     menuentry 'Debian GNU/Linux, with Linux 4.19.0-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-5-amd64-recovery-71ccaf20-3b9c-40a0-aa47-ef227630f941' {
  1207.         load_video
  1208.         insmod gzio
  1209.         if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
  1210.         insmod part_msdos
  1211.         insmod ext2
  1212.         set root='hd1,msdos1'
  1213.         if [ x$feature_platform_search_hint = xy ]; then
  1214.           search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 --hint='hd1,msdos1'  71ccaf20-3b9c-40a0-aa47-ef227630f941
  1215.         else
  1216.           search --no-floppy --fs-uuid --set=root 71ccaf20-3b9c-40a0-aa47-ef227630f941
  1217.         fi
  1218.         echo    'Caricamento Linux 4.19.0-5-amd64...'
  1219.         linux   /boot/vmlinuz-4.19.0-5-amd64 root=UUID=71ccaf20-3b9c-40a0-aa47-ef227630f941 ro single
  1220.         echo    'Caricamento ramdisk iniziale...'
  1221.         initrd  /boot/initrd.img-4.19.0-5-amd64
  1222.     }
  1223. }
  1224.  
  1225. ### END /etc/grub.d/10_linux ###
  1226.  
  1227. ### BEGIN /etc/grub.d/20_linux_xen ###
  1228.  
  1229. ### END /etc/grub.d/20_linux_xen ###
  1230.  
  1231. ### BEGIN /etc/grub.d/30_os-prober ###
  1232. menuentry 'Debian GNU/Linux 9 (stretch) (su /dev/sda1)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-00a254c7-6e85-401c-93b8-b342c7ee597a' {
  1233.     insmod part_msdos
  1234.     insmod ext2
  1235.     set root='hd0,msdos1'
  1236.     if [ x$feature_platform_search_hint = xy ]; then
  1237.       search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  00a254c7-6e85-401c-93b8-b342c7ee597a
  1238.     else
  1239.       search --no-floppy --fs-uuid --set=root 00a254c7-6e85-401c-93b8-b342c7ee597a
  1240.     fi
  1241.     linux /boot/vmlinuz-4.9.0-9-amd64 root=UUID=00a254c7-6e85-401c-93b8-b342c7ee597a ro quiet
  1242.     initrd /boot/initrd.img-4.9.0-9-amd64
  1243. }
  1244. submenu 'Opzioni avanzate per Debian GNU/Linux 9 (stretch) (su /dev/sda1)' $menuentry_id_option 'osprober-gnulinux-advanced-00a254c7-6e85-401c-93b8-b342c7ee597a' {
  1245.     menuentry 'Debian GNU/Linux (su /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.0-9-amd64--00a254c7-6e85-401c-93b8-b342c7ee597a' {
  1246.         insmod part_msdos
  1247.         insmod ext2
  1248.         set root='hd0,msdos1'
  1249.         if [ x$feature_platform_search_hint = xy ]; then
  1250.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  00a254c7-6e85-401c-93b8-b342c7ee597a
  1251.         else
  1252.           search --no-floppy --fs-uuid --set=root 00a254c7-6e85-401c-93b8-b342c7ee597a
  1253.         fi
  1254.         linux /boot/vmlinuz-4.9.0-9-amd64 root=UUID=00a254c7-6e85-401c-93b8-b342c7ee597a ro quiet
  1255.         initrd /boot/initrd.img-4.9.0-9-amd64
  1256.     }
  1257.     menuentry 'Debian GNU/Linux, con Linux 4.9.0-9-amd64 (su /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.0-9-amd64--00a254c7-6e85-401c-93b8-b342c7ee597a' {
  1258.         insmod part_msdos
  1259.         insmod ext2
  1260.         set root='hd0,msdos1'
  1261.         if [ x$feature_platform_search_hint = xy ]; then
  1262.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  00a254c7-6e85-401c-93b8-b342c7ee597a
  1263.         else
  1264.           search --no-floppy --fs-uuid --set=root 00a254c7-6e85-401c-93b8-b342c7ee597a
  1265.         fi
  1266.         linux /boot/vmlinuz-4.9.0-9-amd64 root=UUID=00a254c7-6e85-401c-93b8-b342c7ee597a ro quiet
  1267.         initrd /boot/initrd.img-4.9.0-9-amd64
  1268.     }
  1269.     menuentry 'Debian GNU/Linux, with Linux 4.9.0-9-amd64 (recovery mode) (su /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.0-9-amd64-root=UUID=00a254c7-6e85-401c-93b8-b342c7ee597a ro single-00a254c7-6e85-401c-93b8-b342c7ee597a' {
  1270.         insmod part_msdos
  1271.         insmod ext2
  1272.         set root='hd0,msdos1'
  1273.         if [ x$feature_platform_search_hint = xy ]; then
  1274.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  00a254c7-6e85-401c-93b8-b342c7ee597a
  1275.         else
  1276.           search --no-floppy --fs-uuid --set=root 00a254c7-6e85-401c-93b8-b342c7ee597a
  1277.         fi
  1278.         linux /boot/vmlinuz-4.9.0-9-amd64 root=UUID=00a254c7-6e85-401c-93b8-b342c7ee597a ro single
  1279.         initrd /boot/initrd.img-4.9.0-9-amd64
  1280.     }
  1281.     menuentry 'Debian GNU/Linux, con Linux 4.9.0-8-amd64 (su /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.0-8-amd64--00a254c7-6e85-401c-93b8-b342c7ee597a' {
  1282.         insmod part_msdos
  1283.         insmod ext2
  1284.         set root='hd0,msdos1'
  1285.         if [ x$feature_platform_search_hint = xy ]; then
  1286.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  00a254c7-6e85-401c-93b8-b342c7ee597a
  1287.         else
  1288.           search --no-floppy --fs-uuid --set=root 00a254c7-6e85-401c-93b8-b342c7ee597a
  1289.         fi
  1290.         linux /boot/vmlinuz-4.9.0-8-amd64 root=UUID=00a254c7-6e85-401c-93b8-b342c7ee597a ro quiet
  1291.         initrd /boot/initrd.img-4.9.0-8-amd64
  1292.     }
  1293.     menuentry 'Debian GNU/Linux, with Linux 4.9.0-8-amd64 (recovery mode) (su /dev/sda1)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.9.0-8-amd64-root=UUID=00a254c7-6e85-401c-93b8-b342c7ee597a ro single-00a254c7-6e85-401c-93b8-b342c7ee597a' {
  1294.         insmod part_msdos
  1295.         insmod ext2
  1296.         set root='hd0,msdos1'
  1297.         if [ x$feature_platform_search_hint = xy ]; then
  1298.           search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  00a254c7-6e85-401c-93b8-b342c7ee597a
  1299.         else
  1300.           search --no-floppy --fs-uuid --set=root 00a254c7-6e85-401c-93b8-b342c7ee597a
  1301.         fi
  1302.         linux /boot/vmlinuz-4.9.0-8-amd64 root=UUID=00a254c7-6e85-401c-93b8-b342c7ee597a ro single
  1303.         initrd /boot/initrd.img-4.9.0-8-amd64
  1304.     }
  1305. }
  1306.  
  1307. ### END /etc/grub.d/30_os-prober ###
  1308.  
  1309. ### BEGIN /etc/grub.d/30_uefi-firmware ###
  1310. ### END /etc/grub.d/30_uefi-firmware ###
  1311.  
  1312. ### BEGIN /etc/grub.d/40_custom ###
  1313. # This file provides an easy way to add custom menu entries.  Simply type the
  1314. # menu entries you want to add after this comment.  Be careful not to change
  1315. # the 'exec tail' line above.
  1316. ### END /etc/grub.d/40_custom ###
  1317.  
  1318. ### BEGIN /etc/grub.d/41_custom ###
  1319. if [ -f  ${config_directory}/custom.cfg ]; then
  1320.   source ${config_directory}/custom.cfg
  1321. elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  1322.   source $prefix/custom.cfg;
  1323. fi
  1324. ### END /etc/grub.d/41_custom ###
  1325.  
  1326. ******************************************
  1327. /etc/default/grub.d/
  1328. ******************************************
  1329. La directory contiene 1 file e 0 directory
  1330. totale 12
  1331. drwxr-xr-x 2 root root 4096 Aug  4 17:05 .
  1332. drwxr-xr-x 3 root root 4096 Aug  4 17:05 ..
  1333. -rw-r--r-- 1 root root  274 Dec  6  2018 init-select.cfg
  1334.  
  1335. ******************************************
  1336. /etc/default/grub.d/init-select.cfg
  1337. ******************************************
  1338. # Work around a bug in the obsolete init-select package which broke
  1339. # grub-mkconfig when init-select was removed but not purged.  This file does
  1340. # nothing and will be removed in a later release.
  1341. #
  1342. # See:
  1343. #   https://bugs.debian.org/858528
  1344. #   https://bugs.debian.org/863801
  1345.  
  1346. ******************************************
  1347. /etc/grub.d/
  1348. ******************************************
  1349. La directory contiene 9 file e 0 directory
  1350. totale 92
  1351. drwxr-xr-x   2 root root  4096 Aug  4 17:05 .
  1352. drwxr-xr-x 124 root root 12288 Aug  4 17:19 ..
  1353. -rwxr-xr-x   1 root root  9783 Jun 25 11:11 00_header
  1354. -rwxr-xr-x   1 root root  6258 Jun 13 18:31 05_debian_theme
  1355. -rwxr-xr-x   1 root root 12444 Jun 25 11:11 10_linux
  1356. -rwxr-xr-x   1 root root 11497 Jun 25 11:11 20_linux_xen
  1357. -rwxr-xr-x   1 root root 12059 Jun 25 11:11 30_os-prober
  1358. -rwxr-xr-x   1 root root  1418 Jun 25 11:11 30_uefi-firmware
  1359. -rwxr-xr-x   1 root root   214 Jun 25 11:11 40_custom
  1360. -rwxr-xr-x   1 root root   216 Jun 25 11:11 41_custom
  1361. -rw-r--r--   1 root root   483 Jun 25 11:11 README
  1362.  
  1363. ******************************************
  1364. /etc/grub.d/00_header
  1365. ******************************************
  1366. #! /bin/sh
  1367. set -e
  1368.  
  1369. # grub-mkconfig helper script.
  1370. # Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
  1371. #
  1372. # GRUB is free software: you can redistribute it and/or modify
  1373. # it under the terms of the GNU General Public License as published by
  1374. # the Free Software Foundation, either version 3 of the License, or
  1375. # (at your option) any later version.
  1376. #
  1377. # GRUB is distributed in the hope that it will be useful,
  1378. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  1379. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1380. # GNU General Public License for more details.
  1381. #
  1382. # You should have received a copy of the GNU General Public License
  1383. # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  1384.  
  1385. prefix="/usr"
  1386. exec_prefix="/usr"
  1387. datarootdir="/usr/share"
  1388. grub_lang=`echo $LANG | cut -d . -f 1`
  1389. grubdir="`echo "/boot/grub" | sed 's,//*,/,g'`"
  1390. quick_boot="0"
  1391.  
  1392. export TEXTDOMAIN=grub
  1393. export TEXTDOMAINDIR="${datarootdir}/locale"
  1394.  
  1395. . "$pkgdatadir/grub-mkconfig_lib"
  1396.  
  1397. # Do this as early as possible, since other commands might depend on it.
  1398. # (e.g. the `loadfont' command might need lvm or raid modules)
  1399. for i in ${GRUB_PRELOAD_MODULES} ; do
  1400.   echo "insmod $i"
  1401. done
  1402.  
  1403. if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi
  1404. if [ "x${GRUB_DEFAULT}" = "xsaved" ] ; then GRUB_DEFAULT='${saved_entry}' ; fi
  1405. if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi
  1406. if [ "x${GRUB_GFXMODE}" = "x" ] ; then GRUB_GFXMODE=auto ; fi
  1407.  
  1408. if [ "x${GRUB_DEFAULT_BUTTON}" = "x" ] ; then GRUB_DEFAULT_BUTTON="$GRUB_DEFAULT" ; fi
  1409. if [ "x${GRUB_DEFAULT_BUTTON}" = "xsaved" ] ; then GRUB_DEFAULT_BUTTON='${saved_entry}' ; fi
  1410. if [ "x${GRUB_TIMEOUT_BUTTON}" = "x" ] ; then GRUB_TIMEOUT_BUTTON="$GRUB_TIMEOUT" ; fi
  1411.  
  1412. cat << EOF
  1413. if [ -s \$prefix/grubenv ]; then
  1414.   set have_grubenv=true
  1415.   load_env
  1416. fi
  1417. EOF
  1418. if [ "x$GRUB_BUTTON_CMOS_ADDRESS" != "x" ]; then
  1419.     cat <<EOF
  1420. if cmostest $GRUB_BUTTON_CMOS_ADDRESS ; then
  1421.    set default="${GRUB_DEFAULT_BUTTON}"
  1422. elif [ "\${next_entry}" ] ; then
  1423.    set default="\${next_entry}"
  1424.    set next_entry=
  1425.    save_env next_entry
  1426.    set boot_once=true
  1427. else
  1428.    set default="${GRUB_DEFAULT}"
  1429. fi
  1430. EOF
  1431. else
  1432.     cat <<EOF
  1433. if [ "\${next_entry}" ] ; then
  1434.    set default="\${next_entry}"
  1435.    set next_entry=
  1436.    save_env next_entry
  1437.    set boot_once=true
  1438. else
  1439.    set default="${GRUB_DEFAULT}"
  1440. fi
  1441. EOF
  1442. fi
  1443. cat <<EOF
  1444.  
  1445. if [ x"\${feature_menuentry_id}" = xy ]; then
  1446.   menuentry_id_option="--id"
  1447. else
  1448.   menuentry_id_option=""
  1449. fi
  1450.  
  1451. export menuentry_id_option
  1452.  
  1453. if [ "\${prev_saved_entry}" ]; then
  1454.   set saved_entry="\${prev_saved_entry}"
  1455.   save_env saved_entry
  1456.   set prev_saved_entry=
  1457.   save_env prev_saved_entry
  1458.   set boot_once=true
  1459. fi
  1460.  
  1461. function savedefault {
  1462.   if [ -z "\${boot_once}" ]; then
  1463.     saved_entry="\${chosen}"
  1464.     save_env saved_entry
  1465.   fi
  1466. }
  1467. EOF
  1468.  
  1469. if [ "$quick_boot" = 1 ]; then
  1470.     cat <<EOF
  1471. function recordfail {
  1472.   set recordfail=1
  1473. EOF
  1474.  
  1475.   check_writable () {
  1476.     abstractions="$(grub-probe --target=abstraction "${grubdir}")"
  1477.     for abstraction in $abstractions; do
  1478.       case "$abstraction" in
  1479.         diskfilter | lvm)
  1480.           cat <<EOF
  1481.   # GRUB lacks write support for $abstraction, so recordfail support is disabled.
  1482. EOF
  1483.           return
  1484.           ;;
  1485.       esac
  1486.     done
  1487.  
  1488.     FS="$(grub-probe --target=fs "${grubdir}")"
  1489.     case "$FS" in
  1490.       btrfs | cpiofs | newc | odc | romfs | squash4 | tarfs | zfs)
  1491.     cat <<EOF
  1492.   # GRUB lacks write support for $FS, so recordfail support is disabled.
  1493. EOF
  1494.     return
  1495.     ;;
  1496.     esac
  1497.  
  1498.     cat <<EOF
  1499.   if [ -n "\${have_grubenv}" ]; then if [ -z "\${boot_once}" ]; then save_env recordfail; fi; fi
  1500. EOF
  1501.   }
  1502.  
  1503.   check_writable
  1504.  
  1505.   cat <<EOF
  1506. }
  1507. EOF
  1508. fi
  1509.  
  1510. cat <<EOF
  1511. function load_video {
  1512. EOF
  1513. if [ -n "${GRUB_VIDEO_BACKEND}" ]; then
  1514.     cat <<EOF
  1515.   insmod ${GRUB_VIDEO_BACKEND}
  1516. EOF
  1517. else
  1518. # If all_video.mod isn't available load all modules available
  1519. # with versions prior to introduction of all_video.mod
  1520. cat <<EOF
  1521.   if [ x\$feature_all_video_module = xy ]; then
  1522.     insmod all_video
  1523.   else
  1524.     insmod efi_gop
  1525.     insmod efi_uga
  1526.     insmod ieee1275_fb
  1527.     insmod vbe
  1528.     insmod vga
  1529.     insmod video_bochs
  1530.     insmod video_cirrus
  1531.   fi
  1532. EOF
  1533. fi
  1534. cat <<EOF
  1535. }
  1536.  
  1537. EOF
  1538.  
  1539. serial=0;
  1540. gfxterm=0;
  1541. for x in ${GRUB_TERMINAL_INPUT} ${GRUB_TERMINAL_OUTPUT}; do
  1542.     if [ xserial = "x$x" ]; then
  1543.     serial=1;
  1544.     fi
  1545.     if [ xgfxterm = "x$x" ]; then
  1546.     gfxterm=1;
  1547.     fi
  1548. done
  1549.  
  1550. if [ "x$serial" = x1 ]; then
  1551.     if [ "x${GRUB_SERIAL_COMMAND}" = "x" ] ; then
  1552.     grub_warn "$(gettext "Requested serial terminal but GRUB_SERIAL_COMMAND is unspecified. Default parameters will be used.")"
  1553.     GRUB_SERIAL_COMMAND=serial
  1554.     fi
  1555.     echo "${GRUB_SERIAL_COMMAND}"
  1556. fi
  1557.  
  1558. if [ "x$gfxterm" = x1 ]; then
  1559.     if [ -n "$GRUB_FONT" ] ; then
  1560.        # Make the font accessible
  1561.        prepare_grub_to_access_device `${grub_probe} --target=device "${GRUB_FONT}"`
  1562.     cat << EOF
  1563. if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT}"` ; then
  1564. EOF
  1565.     else
  1566.     for dir in "${pkgdatadir}" "`echo '/boot/grub' | sed "s,//*,/,g"`" /usr/share/grub ; do
  1567.         for basename in unicode unifont ascii; do
  1568.         path="${dir}/${basename}.pf2"
  1569.         if is_path_readable_by_grub "${path}" > /dev/null ; then
  1570.             font_path="${path}"
  1571.         else
  1572.             continue
  1573.         fi
  1574.         break 2
  1575.         done
  1576.     done
  1577.     if [ -n "${font_path}" ] ; then
  1578.     cat << EOF
  1579. if [ x\$feature_default_font_path = xy ] ; then
  1580.    font=unicode
  1581. else
  1582. EOF
  1583.                 # Make the font accessible
  1584.         prepare_grub_to_access_device `${grub_probe} --target=device "${font_path}"`
  1585.     cat << EOF
  1586.     font="`make_system_path_relative_to_its_root "${font_path}"`"
  1587. fi
  1588.  
  1589. if loadfont \$font ; then
  1590. EOF
  1591.         else
  1592.     cat << EOF
  1593. if loadfont unicode ; then
  1594. EOF
  1595.         fi
  1596.     fi
  1597.  
  1598.     cat << EOF
  1599.   set gfxmode=${GRUB_GFXMODE}
  1600.   load_video
  1601.   insmod gfxterm
  1602. EOF
  1603.  
  1604. # Gettext variables and module
  1605. if [ "x${LANG}" != "xC" ] &&  [ "x${LANG}" != "x" ]; then
  1606.   cat << EOF
  1607.   set locale_dir=\$prefix/locale
  1608.   set lang=${grub_lang}
  1609.   insmod gettext
  1610. EOF
  1611. fi
  1612.  
  1613. cat <<EOF
  1614. fi
  1615. EOF
  1616. fi
  1617.  
  1618. case x${GRUB_TERMINAL_INPUT} in
  1619.   x)
  1620.     # Just use the native terminal
  1621.   ;;
  1622.   x*)
  1623.     cat << EOF
  1624. terminal_input ${GRUB_TERMINAL_INPUT}
  1625. EOF
  1626.   ;;
  1627. esac
  1628.  
  1629. case x${GRUB_TERMINAL_OUTPUT} in
  1630.   x)
  1631.     # Just use the native terminal
  1632.   ;;
  1633.   x*)
  1634.     cat << EOF
  1635. terminal_output ${GRUB_TERMINAL_OUTPUT}
  1636. EOF
  1637.   ;;
  1638. esac
  1639.  
  1640. if [ "x$gfxterm" = x1 ]; then
  1641.     if [ "x$GRUB_THEME" != x ] && [ -f "$GRUB_THEME" ] \
  1642.     && is_path_readable_by_grub "$GRUB_THEME"; then
  1643.     gettext_printf "Found theme: %s\n" "$GRUB_THEME" >&2
  1644.  
  1645.     prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_THEME"`
  1646.     cat << EOF
  1647. insmod gfxmenu
  1648. EOF
  1649.     themedir="`dirname "$GRUB_THEME"`"
  1650.     for x in "$themedir"/*.pf2 "$themedir"/f/*.pf2; do
  1651.         if [ -f "$x" ]; then
  1652.         cat << EOF
  1653. loadfont (\$root)`make_system_path_relative_to_its_root $x`
  1654. EOF
  1655.         fi
  1656.     done
  1657.     if [ x"`echo "$themedir"/*.jpg`" != x"$themedir/*.jpg" ] || [ x"`echo "$themedir"/*.jpeg`" != x"$themedir/*.jpeg" ]; then
  1658.         cat << EOF
  1659. insmod jpeg
  1660. EOF
  1661.     fi
  1662.     if [ x"`echo "$themedir"/*.png`" != x"$themedir/*.png" ]; then
  1663.         cat << EOF
  1664. insmod png
  1665. EOF
  1666.     fi
  1667.     if [ x"`echo "$themedir"/*.tga`" != x"$themedir/*.tga" ]; then
  1668.         cat << EOF
  1669. insmod tga
  1670. EOF
  1671.     fi
  1672.        
  1673.     cat << EOF
  1674. set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
  1675. export theme
  1676. EOF
  1677.     elif [ "x$GRUB_BACKGROUND" != x ] && [ -f "$GRUB_BACKGROUND" ] \
  1678.         && is_path_readable_by_grub "$GRUB_BACKGROUND"; then
  1679.     gettext_printf "Found background: %s\n" "$GRUB_BACKGROUND" >&2
  1680.     case "$GRUB_BACKGROUND" in
  1681.         *.png)         reader=png ;;
  1682.         *.tga)         reader=tga ;;
  1683.         *.jpg|*.jpeg)  reader=jpeg ;;
  1684.         *)             gettext "Unsupported image format" >&2; echo >&2; exit 1 ;;
  1685.     esac
  1686.     prepare_grub_to_access_device `${grub_probe} --target=device "$GRUB_BACKGROUND"`
  1687.     cat << EOF
  1688. insmod $reader
  1689. background_image -m stretch `make_system_path_relative_to_its_root "$GRUB_BACKGROUND"`
  1690. EOF
  1691.     fi
  1692. fi
  1693.  
  1694. make_timeout ()
  1695. {
  1696.     cat << EOF
  1697. if [ "\${recordfail}" = 1 ] ; then
  1698.   set timeout=${GRUB_RECORDFAIL_TIMEOUT:-30}
  1699. else
  1700. EOF
  1701.     if [ "x${3}" != "x" ] ; then
  1702.     timeout="${2}"
  1703.     style="${3}"
  1704.     elif [ "x${1}" != "x" ] && \
  1705.      ([ "$quick_boot" = 1 ] || [ "x${1}" != "x0" ]) ; then
  1706.     # Handle the deprecated GRUB_HIDDEN_TIMEOUT scheme.
  1707.     timeout="${1}"
  1708.     if [ "x${2}" != "x0" ] ; then
  1709.         grub_warn "$(gettext "Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.")"
  1710.     fi
  1711.     if [ "x${GRUB_HIDDEN_TIMEOUT_QUIET}" = "xtrue" ] ; then
  1712.         style="hidden"
  1713.         verbose=
  1714.     else
  1715.         style="countdown"
  1716.         verbose=" --verbose"
  1717.     fi
  1718.     else
  1719.     # No hidden timeout, so treat as GRUB_TIMEOUT_STYLE=menu
  1720.     timeout="${2}"
  1721.     style="menu"
  1722.     fi
  1723.     cat << EOF
  1724.   if [ x\$feature_timeout_style = xy ] ; then
  1725.     set timeout_style=${style}
  1726.     set timeout=${timeout}
  1727. EOF
  1728.     if [ "x${style}" = "xmenu" ] ; then
  1729.     cat << EOF
  1730.   # Fallback normal timeout code in case the timeout_style feature is
  1731.   # unavailable.
  1732.   else
  1733.     set timeout=${timeout}
  1734. EOF
  1735.     else
  1736.     cat << EOF
  1737.   # Fallback hidden-timeout code in case the timeout_style feature is
  1738.   # unavailable.
  1739.   elif sleep${verbose} --interruptible ${timeout} ; then
  1740.     set timeout=0
  1741. EOF
  1742.     fi
  1743.     cat << EOF
  1744.   fi
  1745. fi
  1746. EOF
  1747. }
  1748.  
  1749. if [ "x$GRUB_BUTTON_CMOS_ADDRESS" != "x" ]; then
  1750.     cat <<EOF
  1751. if cmostest $GRUB_BUTTON_CMOS_ADDRESS ; then
  1752. EOF
  1753. make_timeout "${GRUB_HIDDEN_TIMEOUT_BUTTON}" "${GRUB_TIMEOUT_BUTTON}" "${GRUB_TIMEOUT_STYLE_BUTTON}"
  1754. echo else
  1755. make_timeout "${GRUB_HIDDEN_TIMEOUT}" "${GRUB_TIMEOUT}" "${GRUB_TIMEOUT_STYLE}"
  1756. echo fi
  1757. else
  1758. make_timeout "${GRUB_HIDDEN_TIMEOUT}" "${GRUB_TIMEOUT}" "${GRUB_TIMEOUT_STYLE}"
  1759. fi
  1760.  
  1761. if [ "x$GRUB_BUTTON_CMOS_ADDRESS" != "x" ] && [ "x$GRUB_BUTTON_CMOS_CLEAN" = "xyes" ]; then
  1762.     cat <<EOF
  1763. cmosclean $GRUB_BUTTON_CMOS_ADDRESS
  1764. EOF
  1765. fi
  1766.  
  1767. # Play an initial tune
  1768. if [ "x${GRUB_INIT_TUNE}" != "x" ] ; then
  1769.   echo "play ${GRUB_INIT_TUNE}"
  1770. fi
  1771.  
  1772. if [ "x${GRUB_BADRAM}" != "x" ] ; then
  1773.   echo "badram ${GRUB_BADRAM}"
  1774. fi
  1775.  
  1776. ******************************************
  1777. /etc/grub.d/05_debian_theme
  1778. ******************************************
  1779. #!/bin/sh
  1780. set -e
  1781.  
  1782. # grub-mkconfig helper script.
  1783. # Copyright (C) 2010  Alexander Kurtz <kurtz.alex@googlemail.com>
  1784. #
  1785. # GRUB is free software: you can redistribute it and/or modify
  1786. # it under the terms of the GNU General Public License as published by
  1787. # the Free Software Foundation, either version 3 of the License, or
  1788. # (at your option) any later version.
  1789. #
  1790. # GRUB is distributed in the hope that it will be useful,
  1791. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  1792. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1793. # GNU General Public License for more details.
  1794. #
  1795. # You should have received a copy of the GNU General Public License
  1796. # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  1797.  
  1798. # Include the GRUB helper library for grub-mkconfig.
  1799. . /usr/share/grub/grub-mkconfig_lib
  1800.  
  1801. # We want to work in /boot/grub/ only.
  1802. test -d /boot/grub; cd /boot/grub
  1803.  
  1804. # Set the location of a possibly necessary cache file for the background image.
  1805. # NOTE: This MUST BE A DOTFILE to avoid confusing it with user-defined images.
  1806. BACKGROUND_CACHE=".background_cache"
  1807.  
  1808. set_default_theme(){
  1809.     case $GRUB_DISTRIBUTOR in
  1810.         Tanglu|Ubuntu|Kubuntu)
  1811.             # Set a monochromatic theme for Tanglu/Ubuntu.
  1812.             echo "${1}set menu_color_normal=white/black"
  1813.             echo "${1}set menu_color_highlight=black/light-gray"
  1814.  
  1815.             if [ -e /usr/share/plymouth/themes/default.grub ]; then
  1816.                 sed "s/^/${1}/" /usr/share/plymouth/themes/default.grub
  1817.             fi
  1818.             # For plymouth backward compatiblity. Can be removed
  1819.             # after xenial.
  1820.             if [ -e /lib/plymouth/themes/default.grub ]; then
  1821.                 sed "s/^/${1}/" /lib/plymouth/themes/default.grub
  1822.             fi
  1823.             ;;
  1824.         *)
  1825.             # Set the traditional Debian blue theme.
  1826.             echo "${1}set menu_color_normal=cyan/blue"
  1827.             echo "${1}set menu_color_highlight=white/blue"
  1828.             ;;
  1829.     esac
  1830. }
  1831.  
  1832. module_available(){
  1833.     local module
  1834.     for module in "${1}.mod" */"${1}.mod"; do
  1835.         if [ -f "${module}" ]; then
  1836.             return 0
  1837.         fi
  1838.     done
  1839.     return 1
  1840. }
  1841.  
  1842. set_background_image(){
  1843.     # Step #1: Search all available output modes ...
  1844.     local output
  1845.     for output in ${GRUB_TERMINAL_OUTPUT}; do
  1846.         if [ "x$output" = "xgfxterm" ]; then
  1847.             break
  1848.         fi
  1849.     done
  1850.  
  1851.     # ... and check if we are able to display a background image at all.
  1852.     if ! [ "x${output}" = "xgfxterm" ]; then
  1853.         return 1
  1854.     fi
  1855.  
  1856.     # Step #2: Check if the specified background image exists.
  1857.     if ! [ -f "${1}" ]; then
  1858.         return 2
  1859.     fi
  1860.  
  1861.     # Step #3: Search the correct GRUB module for our background image.
  1862.     local reader
  1863.     case "${1}" in
  1864.         *.jpg|*.JPG|*.jpeg|*.JPEG) reader="jpeg";;
  1865.         *.png|*.PNG) reader="png";;
  1866.         *.tga|*.TGA) reader="tga";;
  1867.         *) return 3;; # Unknown image type.
  1868.     esac
  1869.  
  1870.     # Step #4: Check if the necessary GRUB module is available.
  1871.     if ! module_available "${reader}"; then
  1872.         return 4
  1873.     fi
  1874.  
  1875.     # Step #5: Check if GRUB can read the background image directly.
  1876.     # If so, we can remove the cache file (if any). Otherwise the backgound
  1877.     # image needs to be cached under /boot/grub/.
  1878.     if is_path_readable_by_grub "${1}"; then
  1879.         rm --force "${BACKGROUND_CACHE}.jpeg" \
  1880.             "${BACKGROUND_CACHE}.png" "${BACKGROUND_CACHE}.tga"
  1881.     elif cp "${1}" "${BACKGROUND_CACHE}.${reader}"; then
  1882.         set -- "${BACKGROUND_CACHE}.${reader}" "${2}" "${3}"
  1883.     else
  1884.         return 5
  1885.     fi
  1886.  
  1887.     # Step #6: Prepare GRUB to read the background image.
  1888.     if ! prepare_grub_to_access_device "`${grub_probe} --target=device "${1}"`"; then
  1889.         return 6
  1890.     fi
  1891.  
  1892.     # Step #7: Everything went fine, print out a message to stderr ...
  1893.     echo "Found background image: ${1}" >&2
  1894.  
  1895.     # ... and write our configuration snippet to stdout. Use the colors
  1896.     # desktop-base specified. If we're using a user-defined background, use
  1897.     # the default colors since we've got no idea how the image looks like.
  1898.     # If loading the background image fails, use the default theme.
  1899.     echo "insmod ${reader}"
  1900.     echo "if background_image `make_system_path_relative_to_its_root "${1}"`; then"
  1901.     if [ -n "${2}" ]; then
  1902.         echo "  set color_normal=${2}"
  1903.     fi
  1904.     if [ -n "${3}" ]; then
  1905.         echo "  set color_highlight=${3}"
  1906.     fi
  1907.     if [ -z "${2}" ] && [ -z "${3}" ]; then
  1908.         echo "  true"
  1909.     fi
  1910.     echo "else"
  1911.     set_default_theme "  "
  1912.     echo "fi"
  1913. }
  1914.  
  1915. # Earlier versions of grub-pc copied the default background image to /boot/grub
  1916. # during postinst. Remove those obsolete images if they haven't been touched by
  1917. # the user. They are still available under /usr/share/images/desktop-base/ if
  1918. # desktop-base is installed.
  1919. while read checksum background; do
  1920.     if [ -f "${background}" ] && [ "x`sha1sum "${background}"`" = "x${checksum}  ${background}" ]; then
  1921.         echo "Removing old background image: ${background}" >&2
  1922.         rm "${background}"
  1923.     fi
  1924. done <<EOF
  1925. 648ee65dd0c157a69b019a5372cbcfea4fc754a5  debian-blueish-wallpaper-640x480.png
  1926. 0431e97a6c661084c59676c4baeeb8c2f602edb8  debian-blueish-wallpaper-640x480.png
  1927. 968ecf6696c5638cfe80e8e70aba239526270864  debian-blueish-wallpaper-640x480.tga
  1928. 11143e8c92a073401de0b0fd42d0c052af4ccd9b  moreblue-orbit-grub.png
  1929. d00d5e505ab63f2d53fa880bfac447e2d3bb197c  moreblue-orbit-grub.png
  1930. f5b12c1009ec0a3b029185f6b66cd0d7e5611019  moreblue-orbit-grub.png
  1931. EOF
  1932.  
  1933. # Include the configuration of desktop-base if available.
  1934. if [ -f "/usr/share/desktop-base/grub_background.sh" ]; then
  1935.     . "/usr/share/desktop-base/grub_background.sh"
  1936. fi
  1937.  
  1938. # First check whether the user has specified a background image explicitly.
  1939. # If so, try to use it. Don't try the other possibilities in that case
  1940. # (#608263).
  1941. if [ -n "${GRUB_BACKGROUND+x}" ]; then
  1942.     set_background_image "${GRUB_BACKGROUND}" || set_default_theme
  1943.     exit 0
  1944. fi
  1945.  
  1946. # Next search for pictures the user put into /boot/grub/ and use the first one.
  1947. for background in *.jpg *.JPG *.jpeg *.JPEG *.png *.PNG *.tga *.TGA; do
  1948.     if set_background_image "${background}"; then
  1949.         exit 0
  1950.     fi
  1951. done
  1952.  
  1953. # Next try to use the background image and colors specified by desktop-base.
  1954. if set_background_image "${WALLPAPER}" "${COLOR_NORMAL}" "${COLOR_HIGHLIGHT}"; then
  1955.     exit 0
  1956. fi
  1957.  
  1958. # If we haven't found a background image yet, use the default from desktop-base.
  1959. case $GRUB_DISTRIBUTOR in
  1960.     Ubuntu|Kubuntu)
  1961.         ;;
  1962.     Tanglu)
  1963.         if set_background_image "/usr/share/images/grub/grub.png"; then
  1964.             exit 0
  1965.         fi
  1966.         ;;
  1967.     *)
  1968.         if set_background_image "/usr/share/images/desktop-base/desktop-grub.png"; then
  1969.             exit 0
  1970.         fi
  1971.         ;;
  1972. esac
  1973.  
  1974. # Finally, if all of the above fails, use the default theme.
  1975. set_default_theme
  1976.  
  1977. ******************************************
  1978. /etc/grub.d/10_linux
  1979. ******************************************
  1980. #! /bin/sh
  1981. set -e
  1982.  
  1983. # grub-mkconfig helper script.
  1984. # Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
  1985. #
  1986. # GRUB is free software: you can redistribute it and/or modify
  1987. # it under the terms of the GNU General Public License as published by
  1988. # the Free Software Foundation, either version 3 of the License, or
  1989. # (at your option) any later version.
  1990. #
  1991. # GRUB is distributed in the hope that it will be useful,
  1992. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  1993. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  1994. # GNU General Public License for more details.
  1995. #
  1996. # You should have received a copy of the GNU General Public License
  1997. # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  1998.  
  1999. prefix="/usr"
  2000. exec_prefix="/usr"
  2001. datarootdir="/usr/share"
  2002. ubuntu_recovery="0"
  2003. quiet_boot="0"
  2004. quick_boot="0"
  2005. gfxpayload_dynamic="0"
  2006. vt_handoff="0"
  2007.  
  2008. . "$pkgdatadir/grub-mkconfig_lib"
  2009.  
  2010. export TEXTDOMAIN=grub
  2011. export TEXTDOMAINDIR="${datarootdir}/locale"
  2012.  
  2013. CLASS="--class gnu-linux --class gnu --class os"
  2014. SUPPORTED_INITS="sysvinit:/lib/sysvinit/init systemd:/lib/systemd/systemd upstart:/sbin/upstart"
  2015.  
  2016. if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  2017.   OS=GNU/Linux
  2018. else
  2019.   case ${GRUB_DISTRIBUTOR} in
  2020.     Ubuntu|Kubuntu)
  2021.       OS="${GRUB_DISTRIBUTOR}"
  2022.       ;;
  2023.     *)
  2024.       OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  2025.       ;;
  2026.   esac
  2027.   CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
  2028. fi
  2029.  
  2030. # loop-AES arranges things so that /dev/loop/X can be our root device, but
  2031. # the initrds that Linux uses don't like that.
  2032. case ${GRUB_DEVICE} in
  2033.   /dev/loop/*|/dev/loop[0-9])
  2034.     GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
  2035.     # We can't cope with devices loop-mounted from files here.
  2036.     case ${GRUB_DEVICE} in
  2037.       /dev/*) ;;
  2038.       *) exit 0 ;;
  2039.     esac
  2040.   ;;
  2041. esac
  2042.  
  2043. # btrfs may reside on multiple devices. We cannot pass them as value of root= parameter
  2044. # and mounting btrfs requires user space scanning, so force UUID in this case.
  2045. if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
  2046.     || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
  2047.     || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
  2048.   LINUX_ROOT_DEVICE=${GRUB_DEVICE}
  2049. else
  2050.   LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
  2051. fi
  2052.  
  2053. case x"$GRUB_FS" in
  2054.     xbtrfs)
  2055.     rootsubvol="`make_system_path_relative_to_its_root /`"
  2056.     rootsubvol="${rootsubvol#/}"
  2057.     if [ "x${rootsubvol}" != x ]; then
  2058.         GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
  2059.     fi;;
  2060.     xzfs)
  2061.     rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true`
  2062.     bootfs="`make_system_path_relative_to_its_root / | sed -e "s,@$,,"`"
  2063.     LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs%/}"
  2064.     ;;
  2065. esac
  2066.  
  2067. title_correction_code=
  2068.  
  2069. if [ -x /lib/recovery-mode/recovery-menu ]; then
  2070.     GRUB_CMDLINE_LINUX_RECOVERY=recovery
  2071. else
  2072.     GRUB_CMDLINE_LINUX_RECOVERY=single
  2073. fi
  2074. if [ "$ubuntu_recovery" = 1 ]; then
  2075.     GRUB_CMDLINE_LINUX_RECOVERY="$GRUB_CMDLINE_LINUX_RECOVERY nomodeset"
  2076. fi
  2077.  
  2078. if [ "$vt_handoff" = 1 ]; then
  2079.   for word in $GRUB_CMDLINE_LINUX_DEFAULT; do
  2080.     if [ "$word" = splash ]; then
  2081.       GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT \$vt_handoff"
  2082.     fi
  2083.   done
  2084. fi
  2085.  
  2086. linux_entry ()
  2087. {
  2088.   os="$1"
  2089.   version="$2"
  2090.   type="$3"
  2091.   args="$4"
  2092.  
  2093.   if [ -z "$boot_device_id" ]; then
  2094.       boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  2095.   fi
  2096.   if [ x$type != xsimple ] ; then
  2097.       case $type in
  2098.       recovery)
  2099.           title="$(gettext_printf "%s, with Linux %s (%s)" "${os}" "${version}" "$(gettext "${GRUB_RECOVERY_TITLE}")")" ;;
  2100.       init-*)
  2101.           title="$(gettext_printf "%s, with Linux %s (%s)" "${os}" "${version}" "${type#init-}")" ;;
  2102.       *)
  2103.           title="$(gettext_printf "%s, with Linux %s" "${os}" "${version}")" ;;
  2104.       esac
  2105.       if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
  2106.       replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
  2107.       quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
  2108.       title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
  2109.       grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
  2110.       fi
  2111.       echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  2112.   else
  2113.       echo "menuentry '$(echo "$os" | grub_quote)' ${CLASS} \$menuentry_id_option 'gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  2114.   fi      
  2115.   if [ "$quick_boot" = 1 ]; then
  2116.       echo "    recordfail" | sed "s/^/$submenu_indentation/"
  2117.   fi
  2118.   if [ x$type != xrecovery ] ; then
  2119.       save_default_entry | grub_add_tab
  2120.   fi
  2121.  
  2122.   # Use ELILO's generic "efifb" when it's known to be available.
  2123.   # FIXME: We need an interface to select vesafb in case efifb can't be used.
  2124.   if [ "x$GRUB_GFXPAYLOAD_LINUX" = x ]; then
  2125.       echo "    load_video" | sed "s/^/$submenu_indentation/"
  2126.   else
  2127.       if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then
  2128.       echo "    load_video" | sed "s/^/$submenu_indentation/"
  2129.       fi
  2130.   fi
  2131.   if ([ "$ubuntu_recovery" = 0 ] || [ x$type != xrecovery ]) && \
  2132.      ([ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 1 ]); then
  2133.       echo "    gfxmode \$linux_gfx_mode" | sed "s/^/$submenu_indentation/"
  2134.   fi
  2135.  
  2136.   echo "    insmod gzio" | sed "s/^/$submenu_indentation/"
  2137.   echo "    if [ x\$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi" | sed "s/^/$submenu_indentation/"
  2138.  
  2139.   if [ x$dirname = x/ ]; then
  2140.     if [ -z "${prepare_root_cache}" ]; then
  2141.       prepare_root_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE} | grub_add_tab)"
  2142.     fi
  2143.     printf '%s\n' "${prepare_root_cache}" | sed "s/^/$submenu_indentation/"
  2144.   else
  2145.     if [ -z "${prepare_boot_cache}" ]; then
  2146.       prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
  2147.     fi
  2148.     printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
  2149.   fi
  2150.   if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
  2151.     message="$(gettext_printf "Loading Linux %s ..." ${version})"
  2152.     sed "s/^/$submenu_indentation/" << EOF
  2153.     echo    '$(echo "$message" | grub_quote)'
  2154. EOF
  2155.   fi
  2156.   if test -d /sys/firmware/efi && test -e "${linux}.efi.signed"; then
  2157.     sed "s/^/$submenu_indentation/" << EOF
  2158.     linux   ${rel_dirname}/${basename}.efi.signed root=${linux_root_device_thisversion} ro ${args}
  2159. EOF
  2160.   else
  2161.     sed "s/^/$submenu_indentation/" << EOF
  2162.     linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${args}
  2163. EOF
  2164.   fi
  2165.   if test -n "${initrd}" ; then
  2166.     # TRANSLATORS: ramdisk isn't identifier. Should be translated.
  2167.     if [ x"$quiet_boot" = x0 ] || [ x"$type" != xsimple ]; then
  2168.       message="$(gettext_printf "Loading initial ramdisk ...")"
  2169.       sed "s/^/$submenu_indentation/" << EOF
  2170.     echo    '$(echo "$message" | grub_quote)'
  2171. EOF
  2172.     fi
  2173.     sed "s/^/$submenu_indentation/" << EOF
  2174.     initrd  ${rel_dirname}/${initrd}
  2175. EOF
  2176.   fi
  2177.   sed "s/^/$submenu_indentation/" << EOF
  2178. }
  2179. EOF
  2180. }
  2181.  
  2182. machine=`uname -m`
  2183. case "x$machine" in
  2184.     xi?86 | xx86_64)
  2185.     list=
  2186.     for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do
  2187.         if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
  2188.     done ;;
  2189.     *)
  2190.     list=
  2191.     for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do
  2192.                   if grub_file_is_not_garbage "$i" ; then list="$list $i" ; fi
  2193.     done ;;
  2194. esac
  2195.  
  2196. case "$machine" in
  2197.     i?86) GENKERNEL_ARCH="x86" ;;
  2198.     mips|mips64) GENKERNEL_ARCH="mips" ;;
  2199.     mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;;
  2200.     arm*) GENKERNEL_ARCH="arm" ;;
  2201.     *) GENKERNEL_ARCH="$machine" ;;
  2202. esac
  2203.  
  2204. prepare_boot_cache=
  2205. prepare_root_cache=
  2206. boot_device_id=
  2207. title_correction_code=
  2208.  
  2209. cat << 'EOF'
  2210. function gfxmode {
  2211.     set gfxpayload="${1}"
  2212. EOF
  2213. if [ "$vt_handoff" = 1 ]; then
  2214.   cat << 'EOF'
  2215.     if [ "${1}" = "keep" ]; then
  2216.         set vt_handoff=vt.handoff=7
  2217.     else
  2218.         set vt_handoff=
  2219.     fi
  2220. EOF
  2221. fi
  2222. cat << EOF
  2223. }
  2224. EOF
  2225.  
  2226. # Use ELILO's generic "efifb" when it's known to be available.
  2227. # FIXME: We need an interface to select vesafb in case efifb can't be used.
  2228. if [ "x$GRUB_GFXPAYLOAD_LINUX" != x ] || [ "$gfxpayload_dynamic" = 0 ]; then
  2229.   echo "set linux_gfx_mode=$GRUB_GFXPAYLOAD_LINUX"
  2230. else
  2231.   cat << EOF
  2232. if [ "\${recordfail}" != 1 ]; then
  2233.   if [ -e \${prefix}/gfxblacklist.txt ]; then
  2234.     if hwmatch \${prefix}/gfxblacklist.txt 3; then
  2235.       if [ \${match} = 0 ]; then
  2236.         set linux_gfx_mode=keep
  2237.       else
  2238.         set linux_gfx_mode=text
  2239.       fi
  2240.     else
  2241.       set linux_gfx_mode=text
  2242.     fi
  2243.   else
  2244.     set linux_gfx_mode=keep
  2245.   fi
  2246. else
  2247.   set linux_gfx_mode=text
  2248. fi
  2249. EOF
  2250. fi
  2251. cat << EOF
  2252. export linux_gfx_mode
  2253. EOF
  2254.  
  2255. # Extra indentation to add to menu entries in a submenu. We're not in a submenu
  2256. # yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
  2257. submenu_indentation=""
  2258.  
  2259. is_top_level=true
  2260. while [ "x$list" != "x" ] ; do
  2261.   linux=`version_find_latest $list`
  2262.   case $linux in
  2263.     *.efi.signed)
  2264.       # We handle these in linux_entry.
  2265.       list=`echo $list | tr ' ' '\n' | grep -vx $linux | tr '\n' ' '`
  2266.       continue
  2267.       ;;
  2268.   esac
  2269.   gettext_printf "Found linux image: %s\n" "$linux" >&2
  2270.   basename=`basename $linux`
  2271.   dirname=`dirname $linux`
  2272.   rel_dirname=`make_system_path_relative_to_its_root $dirname`
  2273.   version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
  2274.   alt_version=`echo $version | sed -e "s,\.old$,,g"`
  2275.   linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
  2276.  
  2277.   initrd=
  2278.   for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
  2279.        "initrd-${version}" "initramfs-${version}.img" \
  2280.        "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
  2281.        "initrd-${alt_version}" "initramfs-${alt_version}.img" \
  2282.        "initramfs-genkernel-${version}" \
  2283.        "initramfs-genkernel-${alt_version}" \
  2284.        "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
  2285.        "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}"; do
  2286.     if test -e "${dirname}/${i}" ; then
  2287.       initrd="$i"
  2288.       break
  2289.     fi
  2290.   done
  2291.  
  2292.   config=
  2293.   for i in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
  2294.     if test -e "${i}" ; then
  2295.       config="${i}"
  2296.       break
  2297.     fi
  2298.   done
  2299.  
  2300.   initramfs=
  2301.   if test -n "${config}" ; then
  2302.       initramfs=`grep CONFIG_INITRAMFS_SOURCE= "${config}" | cut -f2 -d= | tr -d \"`
  2303.   fi
  2304.  
  2305.   if test -n "${initrd}" ; then
  2306.     gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
  2307.   elif test -z "${initramfs}" ; then
  2308.     # "UUID=" and "ZFS=" magic is parsed by initrd or initramfs.  Since there's
  2309.     # no initrd or builtin initramfs, it can't work here.
  2310.     linux_root_device_thisversion=${GRUB_DEVICE}
  2311.   fi
  2312.  
  2313.   if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
  2314.     linux_entry "${OS}" "${version}" simple \
  2315.     "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
  2316.  
  2317.     submenu_indentation="$grub_tab"
  2318.    
  2319.     if [ -z "$boot_device_id" ]; then
  2320.     boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  2321.     fi
  2322.     # TRANSLATORS: %s is replaced with an OS name
  2323.     echo "submenu '$(gettext_printf "Advanced options for %s" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
  2324.     is_top_level=false
  2325.   fi
  2326.  
  2327.   linux_entry "${OS}" "${version}" advanced \
  2328.               "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}"
  2329.   for supported_init in ${SUPPORTED_INITS}; do
  2330.     init_path="${supported_init#*:}"
  2331.     if [ -x "${init_path}" ] && [ "$(readlink -f /sbin/init)" != "$(readlink -f "${init_path}")" ]; then
  2332.       linux_entry "${OS}" "${version}" "init-${supported_init%%:*}" \
  2333.           "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} init=${init_path}"
  2334.     fi
  2335.   done
  2336.   if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
  2337.     linux_entry "${OS}" "${version}" recovery \
  2338.                 "${GRUB_CMDLINE_LINUX_RECOVERY} ${GRUB_CMDLINE_LINUX}"
  2339.   fi
  2340.  
  2341.   list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
  2342. done
  2343.  
  2344. # If at least one kernel was found, then we need to
  2345. # add a closing '}' for the submenu command.
  2346. if [ x"$is_top_level" != xtrue ]; then
  2347.   echo '}'
  2348. fi
  2349.  
  2350. echo "$title_correction_code"
  2351.  
  2352. ******************************************
  2353. /etc/grub.d/20_linux_xen
  2354. ******************************************
  2355. #! /bin/sh
  2356. set -e
  2357.  
  2358. # grub-mkconfig helper script.
  2359. # Copyright (C) 2006,2007,2008,2009,2010  Free Software Foundation, Inc.
  2360. #
  2361. # GRUB is free software: you can redistribute it and/or modify
  2362. # it under the terms of the GNU General Public License as published by
  2363. # the Free Software Foundation, either version 3 of the License, or
  2364. # (at your option) any later version.
  2365. #
  2366. # GRUB is distributed in the hope that it will be useful,
  2367. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  2368. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  2369. # GNU General Public License for more details.
  2370. #
  2371. # You should have received a copy of the GNU General Public License
  2372. # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  2373.  
  2374. prefix="/usr"
  2375. exec_prefix="/usr"
  2376. datarootdir="/usr/share"
  2377.  
  2378. . "$pkgdatadir/grub-mkconfig_lib"
  2379.  
  2380. export TEXTDOMAIN=grub
  2381. export TEXTDOMAINDIR="${datarootdir}/locale"
  2382.  
  2383. CLASS="--class gnu-linux --class gnu --class os --class xen"
  2384. SUPPORTED_INITS="sysvinit:/lib/sysvinit/init systemd:/lib/systemd/systemd upstart:/sbin/upstart"
  2385.  
  2386. if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
  2387.   OS=GNU/Linux
  2388. else
  2389.   OS="${GRUB_DISTRIBUTOR} GNU/Linux"
  2390.   CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
  2391. fi
  2392.  
  2393. # loop-AES arranges things so that /dev/loop/X can be our root device, but
  2394. # the initrds that Linux uses don't like that.
  2395. case ${GRUB_DEVICE} in
  2396.   /dev/loop/*|/dev/loop[0-9])
  2397.     GRUB_DEVICE=`losetup ${GRUB_DEVICE} | sed -e "s/^[^(]*(\([^)]\+\)).*/\1/"`
  2398.     # We can't cope with devices loop-mounted from files here.
  2399.     case ${GRUB_DEVICE} in
  2400.       /dev/*) ;;
  2401.       *) exit 0 ;;
  2402.     esac
  2403.   ;;
  2404. esac
  2405.  
  2406. # btrfs may reside on multiple devices. We cannot pass them as value of root= parameter
  2407. # and mounting btrfs requires user space scanning, so force UUID in this case.
  2408. if [ "x${GRUB_DEVICE_UUID}" = "x" ] || [ "x${GRUB_DISABLE_LINUX_UUID}" = "xtrue" ] \
  2409.     || ! test -e "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" \
  2410.     || ( test -e "${GRUB_DEVICE}" && uses_abstraction "${GRUB_DEVICE}" lvm ); then
  2411.   LINUX_ROOT_DEVICE=${GRUB_DEVICE}
  2412. else
  2413.   LINUX_ROOT_DEVICE=UUID=${GRUB_DEVICE_UUID}
  2414. fi
  2415.  
  2416. # Allow overriding GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT.
  2417. if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE}" ]; then
  2418.   GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX_XEN_REPLACE}"
  2419. fi
  2420. if [ "${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}" ]; then
  2421.   GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT}"
  2422. fi
  2423.  
  2424. case x"$GRUB_FS" in
  2425.     xbtrfs)
  2426.     rootsubvol="`make_system_path_relative_to_its_root /`"
  2427.     rootsubvol="${rootsubvol#/}"
  2428.     if [ "x${rootsubvol}" != x ]; then
  2429.         GRUB_CMDLINE_LINUX="rootflags=subvol=${rootsubvol} ${GRUB_CMDLINE_LINUX}"
  2430.     fi;;
  2431.     xzfs)
  2432.     rpool=`${grub_probe} --device ${GRUB_DEVICE} --target=fs_label 2>/dev/null || true`
  2433.     bootfs="`make_system_path_relative_to_its_root / | sed -e "s,@$,,"`"
  2434.     LINUX_ROOT_DEVICE="ZFS=${rpool}${bootfs%/}"
  2435.     ;;
  2436. esac
  2437.  
  2438. title_correction_code=
  2439.  
  2440. linux_entry ()
  2441. {
  2442.   os="$1"
  2443.   version="$2"
  2444.   xen_version="$3"
  2445.   type="$4"
  2446.   args="$5"
  2447.   xen_args="$6"
  2448.   if [ -z "$boot_device_id" ]; then
  2449.       boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  2450.   fi
  2451.   if [ x$type != xsimple ] ; then
  2452.       if [ x$type = xrecovery ] ; then
  2453.       title="$(gettext_printf "%s, with Xen %s and Linux %s (%s)" "${os}" "${xen_version}" "${version}" "$(gettext "${GRUB_RECOVERY_TITLE}")")"
  2454.       elif [ "${type#init-}" != "$type" ] ; then
  2455.       title="$(gettext_printf "%s, with Xen %s and Linux %s (%s)" "${os}" "${xen_version}" "${version}" "${type#init-}")"
  2456.       else
  2457.       title="$(gettext_printf "%s, with Xen %s and Linux %s" "${os}" "${xen_version}" "${version}")"
  2458.       fi
  2459.       replacement_title="$(echo "Advanced options for ${OS}" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
  2460.       if [ x"Xen ${xen_version}>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
  2461.          quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
  2462.          title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
  2463.          grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
  2464.       fi
  2465.       echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-$version-$type-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  2466.   else
  2467.       title="$(gettext_printf "%s, with Xen hypervisor" "${os}")"
  2468.       echo "menuentry '$(echo "$title" | grub_quote)' ${CLASS} \$menuentry_id_option 'xen-gnulinux-simple-$boot_device_id' {" | sed "s/^/$submenu_indentation/"
  2469.   fi
  2470.   if [ x$type != xrecovery ] ; then
  2471.       save_default_entry | grub_add_tab | sed "s/^/$submenu_indentation/"
  2472.   fi
  2473.  
  2474.   if [ -z "${prepare_boot_cache}" ]; then
  2475.     prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | grub_add_tab)"
  2476.   fi
  2477.   printf '%s\n' "${prepare_boot_cache}" | sed "s/^/$submenu_indentation/"
  2478.   xmessage="$(gettext_printf "Loading Xen %s ..." ${xen_version})"
  2479.   lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
  2480.   sed "s/^/$submenu_indentation/" << EOF
  2481.     echo    '$(echo "$xmessage" | grub_quote)'
  2482.         if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then
  2483.             xen_rm_opts=
  2484.         else
  2485.             xen_rm_opts="no-real-mode edd=off"
  2486.         fi
  2487.     ${xen_loader}   ${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} \${xen_rm_opts}
  2488.     echo    '$(echo "$lmessage" | grub_quote)'
  2489.     ${module_loader}    ${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
  2490. EOF
  2491.   if test -n "${initrd}" ; then
  2492.     # TRANSLATORS: ramdisk isn't identifier. Should be translated.
  2493.     message="$(gettext_printf "Loading initial ramdisk ...")"
  2494.     sed "s/^/$submenu_indentation/" << EOF
  2495.     echo    '$(echo "$message" | grub_quote)'
  2496.     ${module_loader}    --nounzip   ${rel_dirname}/${initrd}
  2497. EOF
  2498.   fi
  2499.   sed "s/^/$submenu_indentation/" << EOF
  2500. }
  2501. EOF
  2502. }
  2503.  
  2504. linux_list=
  2505. for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
  2506.     if grub_file_is_not_garbage "$i"; then
  2507.         basename=$(basename $i)
  2508.     version=$(echo $basename | sed -e "s,^[^0-9]*-,,g")
  2509.     dirname=$(dirname $i)
  2510.     config=
  2511.     for j in "${dirname}/config-${version}" "${dirname}/config-${alt_version}" "/etc/kernels/kernel-config-${version}" ; do
  2512.         if test -e "${j}" ; then
  2513.         config="${j}"
  2514.         break
  2515.         fi
  2516.     done
  2517.         if (grep -qx "CONFIG_XEN_DOM0=y" "${config}" 2> /dev/null || grep -qx "CONFIG_XEN_PRIVILEGED_GUEST=y" "${config}" 2> /dev/null); then linux_list="$linux_list $i" ; fi
  2518.     fi
  2519. done
  2520. if [ "x${linux_list}" = "x" ] ; then
  2521.     exit 0
  2522. fi
  2523.  
  2524. file_is_not_sym () {
  2525.     case "$1" in
  2526.     */xen-syms-*)
  2527.         return 1;;
  2528.     *)
  2529.         return 0;;
  2530.     esac
  2531. }
  2532.  
  2533. xen_list=
  2534. for i in /boot/xen*; do
  2535.     if grub_file_is_not_garbage "$i" && file_is_not_sym "$i" ; then xen_list="$xen_list $i" ; fi
  2536. done
  2537. prepare_boot_cache=
  2538. boot_device_id=
  2539.  
  2540. title_correction_code=
  2541.  
  2542. machine=`uname -m`
  2543.  
  2544. case "$machine" in
  2545.     i?86) GENKERNEL_ARCH="x86" ;;
  2546.     mips|mips64) GENKERNEL_ARCH="mips" ;;
  2547.     mipsel|mips64el) GENKERNEL_ARCH="mipsel" ;;
  2548.     arm*) GENKERNEL_ARCH="arm" ;;
  2549.     *) GENKERNEL_ARCH="$machine" ;;
  2550. esac
  2551.  
  2552. # Extra indentation to add to menu entries in a submenu. We're not in a submenu
  2553. # yet, so it's empty. In a submenu it will be equal to '\t' (one tab).
  2554. submenu_indentation=""
  2555.  
  2556. is_top_level=true
  2557.  
  2558. while [ "x${xen_list}" != "x" ] ; do
  2559.     list="${linux_list}"
  2560.     current_xen=`version_find_latest $xen_list`
  2561.     xen_basename=`basename ${current_xen}`
  2562.     xen_dirname=`dirname ${current_xen}`
  2563.     rel_xen_dirname=`make_system_path_relative_to_its_root $xen_dirname`
  2564.     xen_version=`echo $xen_basename | sed -e "s,.gz$,,g;s,^xen-,,g"`
  2565.     if [ -z "$boot_device_id" ]; then
  2566.     boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  2567.     fi
  2568.     if [ "x$is_top_level" != xtrue ]; then
  2569.     echo "  submenu '$(gettext_printf "Xen hypervisor, version %s" "${xen_version}" | grub_quote)' \$menuentry_id_option 'xen-hypervisor-$xen_version-$boot_device_id' {"
  2570.     fi
  2571.     if ($grub_file --is-x86-multiboot2 $current_xen); then
  2572.     xen_loader="multiboot2"
  2573.     module_loader="module2"
  2574.     else
  2575.     xen_loader="multiboot"
  2576.     module_loader="module"
  2577.     fi
  2578.     while [ "x$list" != "x" ] ; do
  2579.     linux=`version_find_latest $list`
  2580.     gettext_printf "Found linux image: %s\n" "$linux" >&2
  2581.     basename=`basename $linux`
  2582.     dirname=`dirname $linux`
  2583.     rel_dirname=`make_system_path_relative_to_its_root $dirname`
  2584.     version=`echo $basename | sed -e "s,^[^0-9]*-,,g"`
  2585.     alt_version=`echo $version | sed -e "s,\.old$,,g"`
  2586.     linux_root_device_thisversion="${LINUX_ROOT_DEVICE}"
  2587.  
  2588.     initrd=
  2589.     for i in "initrd.img-${version}" "initrd-${version}.img" "initrd-${version}.gz" \
  2590.        "initrd-${version}" "initramfs-${version}.img" \
  2591.        "initrd.img-${alt_version}" "initrd-${alt_version}.img" \
  2592.        "initrd-${alt_version}" "initramfs-${alt_version}.img" \
  2593.        "initramfs-genkernel-${version}" \
  2594.        "initramfs-genkernel-${alt_version}" \
  2595.        "initramfs-genkernel-${GENKERNEL_ARCH}-${version}" \
  2596.        "initramfs-genkernel-${GENKERNEL_ARCH}-${alt_version}" ; do
  2597.         if test -e "${dirname}/${i}" ; then
  2598.         initrd="$i"
  2599.         break
  2600.         fi
  2601.     done
  2602.     if test -n "${initrd}" ; then
  2603.         gettext_printf "Found initrd image: %s\n" "${dirname}/${initrd}" >&2
  2604.     else
  2605.     # "UUID=" magic is parsed by initrds.  Since there's no initrd, it can't work here.
  2606.         linux_root_device_thisversion=${GRUB_DEVICE}
  2607.     fi
  2608.  
  2609.     if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
  2610.         linux_entry "${OS}" "${version}" "${xen_version}" simple \
  2611.         "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
  2612.  
  2613.         submenu_indentation="$grub_tab$grub_tab"
  2614.    
  2615.         if [ -z "$boot_device_id" ]; then
  2616.         boot_device_id="$(grub_get_device_id "${GRUB_DEVICE}")"
  2617.         fi
  2618.             # TRANSLATORS: %s is replaced with an OS name
  2619.         echo "submenu '$(gettext_printf "Advanced options for %s (with Xen hypervisor)" "${OS}" | grub_quote)' \$menuentry_id_option 'gnulinux-advanced-$boot_device_id' {"
  2620.     echo "  submenu '$(gettext_printf "Xen hypervisor, version %s" "${xen_version}" | grub_quote)' \$menuentry_id_option 'xen-hypervisor-$xen_version-$boot_device_id' {"
  2621.        is_top_level=false
  2622.     fi
  2623.  
  2624.     linux_entry "${OS}" "${version}" "${xen_version}" advanced \
  2625.         "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
  2626.     for supported_init in ${SUPPORTED_INITS}; do
  2627.         init_path="${supported_init#*:}"
  2628.         if [ -x "${init_path}" ] && [ "$(readlink -f /sbin/init)" != "$(readlink -f "${init_path}")" ]; then
  2629.         linux_entry "${OS}" "${version}" "${xen_version}" "init-${supported_init%%:*}" \
  2630.             "${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT} init=${init_path}" "${GRUB_CMDLINE_XEN} ${GRUB_CMDLINE_XEN_DEFAULT}"
  2631.  
  2632.         fi
  2633.     done
  2634.     if [ "x${GRUB_DISABLE_RECOVERY}" != "xtrue" ]; then
  2635.         linux_entry "${OS}" "${version}" "${xen_version}" recovery \
  2636.         "single ${GRUB_CMDLINE_LINUX}" "${GRUB_CMDLINE_XEN}"
  2637.     fi
  2638.  
  2639.     list=`echo $list | tr ' ' '\n' | fgrep -vx "$linux" | tr '\n' ' '`
  2640.     done
  2641.     if [ x"$is_top_level" != xtrue ]; then
  2642.     echo '  }'
  2643.     fi
  2644.     xen_list=`echo $xen_list | tr ' ' '\n' | fgrep -vx "$current_xen" | tr '\n' ' '`
  2645. done
  2646.  
  2647. # If at least one kernel was found, then we need to
  2648. # add a closing '}' for the submenu command.
  2649. if [ x"$is_top_level" != xtrue ]; then
  2650.   echo '}'
  2651. fi
  2652.  
  2653. echo "$title_correction_code"
  2654.  
  2655. ******************************************
  2656. /etc/grub.d/30_os-prober
  2657. ******************************************
  2658. #! /bin/sh
  2659. set -e
  2660.  
  2661. # grub-mkconfig helper script.
  2662. # Copyright (C) 2006,2007,2008,2009  Free Software Foundation, Inc.
  2663. #
  2664. # GRUB is free software: you can redistribute it and/or modify
  2665. # it under the terms of the GNU General Public License as published by
  2666. # the Free Software Foundation, either version 3 of the License, or
  2667. # (at your option) any later version.
  2668. #
  2669. # GRUB is distributed in the hope that it will be useful,
  2670. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  2671. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  2672. # GNU General Public License for more details.
  2673. #
  2674. # You should have received a copy of the GNU General Public License
  2675. # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  2676.  
  2677. prefix="/usr"
  2678. exec_prefix="/usr"
  2679. datarootdir="/usr/share"
  2680. quick_boot="0"
  2681.  
  2682. export TEXTDOMAIN=grub
  2683. export TEXTDOMAINDIR="${datarootdir}/locale"
  2684.  
  2685. . "$pkgdatadir/grub-mkconfig_lib"
  2686.  
  2687. found_other_os=
  2688.  
  2689. adjust_timeout () {
  2690.   if [ "$quick_boot" = 1 ] && [ "x${found_other_os}" != "x" ]; then
  2691.     cat << EOF
  2692. set timeout_style=menu
  2693. if [ "\${timeout}" = 0 ]; then
  2694.   set timeout=10
  2695. fi
  2696. EOF
  2697.   fi
  2698. }
  2699.  
  2700. if [ "x${GRUB_DISABLE_OS_PROBER}" = "xtrue" ]; then
  2701.   exit 0
  2702. fi
  2703.  
  2704. if [ -z "`which os-prober 2> /dev/null`" ] || [ -z "`which linux-boot-prober 2> /dev/null`" ] ; then
  2705.   # missing os-prober and/or linux-boot-prober
  2706.   exit 0
  2707. fi
  2708.  
  2709. OSPROBED="`os-prober | tr ' ' '^' | paste -s -d ' '`"
  2710. if [ -z "${OSPROBED}" ] ; then
  2711.   # empty os-prober output, nothing doing
  2712.   exit 0
  2713. fi
  2714.  
  2715. osx_entry() {
  2716.     found_other_os=1
  2717.     if [ x$2 = x32 ]; then
  2718.         # TRANSLATORS: it refers to kernel architecture (32-bit)
  2719.     bitstr="$(gettext "(32-bit)")"
  2720.     else
  2721.         # TRANSLATORS: it refers to kernel architecture (64-bit)
  2722.     bitstr="$(gettext "(64-bit)")"
  2723.     fi
  2724.     # TRANSLATORS: it refers on the OS residing on device %s
  2725.     onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
  2726.         cat << EOF
  2727. menuentry '$(echo "${LONGNAME} $bitstr $onstr" | grub_quote)' --class osx --class darwin --class os \$menuentry_id_option 'osprober-xnu-$2-$(grub_get_device_id "${DEVICE}")'  {
  2728. EOF
  2729.     save_default_entry | grub_add_tab
  2730.     prepare_grub_to_access_device ${DEVICE} | grub_add_tab
  2731.     cat << EOF
  2732.         load_video
  2733.         set do_resume=0
  2734.         if [ /var/vm/sleepimage -nt10 / ]; then
  2735.            if xnu_resume /var/vm/sleepimage; then
  2736.              set do_resume=1
  2737.            fi
  2738.         fi
  2739.         if [ \$do_resume = 0 ]; then
  2740.            xnu_uuid ${OSXUUID} uuid
  2741.            if [ -f /Extra/DSDT.aml ]; then
  2742.               acpi -e /Extra/DSDT.aml
  2743.            fi
  2744.            if [ /kernelcache -nt /System/Library/Extensions ]; then
  2745.               $1 /kernelcache boot-uuid=\${uuid} rd=*uuid
  2746.            elif [ -f /System/Library/Kernels/kernel ]; then
  2747.               $1 /System/Library/Kernels/kernel boot-uuid=\${uuid} rd=*uuid
  2748.               xnu_kextdir /System/Library/Extensions
  2749.            else
  2750.               $1 /mach_kernel boot-uuid=\${uuid} rd=*uuid
  2751.               if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
  2752.                 xnu_mkext /System/Library/Extensions.mkext
  2753.               else
  2754.                 xnu_kextdir /System/Library/Extensions
  2755.               fi
  2756.            fi
  2757.            if [ -f /Extra/Extensions.mkext ]; then
  2758.               xnu_mkext /Extra/Extensions.mkext
  2759.            fi
  2760.            if [ -d /Extra/Extensions ]; then
  2761.               xnu_kextdir /Extra/Extensions
  2762.            fi
  2763.            if [ -f /Extra/devprop.bin ]; then
  2764.               xnu_devprop_load /Extra/devprop.bin
  2765.            fi
  2766.            if [ -f /Extra/splash.jpg ]; then
  2767.               insmod jpeg
  2768.               xnu_splash /Extra/splash.jpg
  2769.            fi
  2770.            if [ -f /Extra/splash.png ]; then
  2771.               insmod png
  2772.               xnu_splash /Extra/splash.png
  2773.            fi
  2774.            if [ -f /Extra/splash.tga ]; then
  2775.               insmod tga
  2776.               xnu_splash /Extra/splash.tga
  2777.            fi
  2778.         fi
  2779. }
  2780. EOF
  2781. }
  2782.  
  2783. used_osprober_linux_ids=
  2784.  
  2785. wubi=
  2786.  
  2787. for OS in ${OSPROBED} ; do
  2788.   DEVICE="`echo ${OS} | cut -d ':' -f 1`"
  2789.   LONGNAME="`echo ${OS} | cut -d ':' -f 2 | tr '^' ' '`"
  2790.   LABEL="`echo ${OS} | cut -d ':' -f 3 | tr '^' ' '`"
  2791.   BOOT="`echo ${OS} | cut -d ':' -f 4`"
  2792.   if UUID="`${grub_probe} --target=fs_uuid --device ${DEVICE%@*}`"; then
  2793.     EXPUUID="$UUID"
  2794.  
  2795.     if [ x"${DEVICE#*@}" != x ] ; then
  2796.       EXPUUID="${EXPUUID}@${DEVICE#*@}"
  2797.     fi
  2798.  
  2799.     if [ "x${GRUB_OS_PROBER_SKIP_LIST}" != "x" ] && [ "x`echo ${GRUB_OS_PROBER_SKIP_LIST} | grep -i -e '\b'${EXPUUID}'\b'`" != "x" ] ; then
  2800.       echo "Skipped ${LONGNAME} on ${DEVICE} by user request." >&2
  2801.       continue
  2802.     fi
  2803.   fi
  2804.  
  2805.   BTRFS="`echo ${OS} | cut -d ':' -f 5`"
  2806.   if [ "x$BTRFS" = "xbtrfs" ]; then
  2807.     BTRFSuuid="`echo ${OS} | cut -d ':' -f 6`"
  2808.     BTRFSsubvol="`echo ${OS} | cut -d ':' -f 7`"
  2809.   fi
  2810.  
  2811.   if [ -z "${LONGNAME}" ] ; then
  2812.     LONGNAME="${LABEL}"
  2813.   fi
  2814.  
  2815.   # os-prober returns text string followed by optional counter
  2816.   CLASS="--class $(echo "${LABEL}" | LC_ALL=C sed 's,[[:digit:]]*$,,' | cut -d' ' -f1 | tr 'A-Z' 'a-z' | LC_ALL=C sed 's,[^[:alnum:]_],_,g')"
  2817.  
  2818.   gettext_printf "Found %s on %s\n" "${LONGNAME}" "${DEVICE}" >&2
  2819.  
  2820.   case ${BOOT} in
  2821.     chain)
  2822.  
  2823.       case ${LONGNAME} in
  2824.     Windows*)
  2825.       if [ -z "$wubi" ]; then
  2826.         if [ -x /usr/share/lupin-support/grub-mkimage ] && \
  2827.            /usr/share/lupin-support/grub-mkimage --test; then
  2828.           wubi=yes
  2829.         else
  2830.           wubi=no
  2831.         fi
  2832.       fi
  2833.       if [ "$wubi" = yes ]; then
  2834.         echo "Skipping ${LONGNAME} on Wubi system" >&2
  2835.         continue
  2836.       fi
  2837.       ;;
  2838.       esac
  2839.  
  2840.       found_other_os=1
  2841.       onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
  2842.       cat << EOF
  2843. menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' $CLASS --class os \$menuentry_id_option 'osprober-chain-$(grub_get_device_id "${DEVICE}")' {
  2844. EOF
  2845.       save_default_entry | grub_add_tab
  2846.       prepare_grub_to_access_device ${DEVICE} | grub_add_tab
  2847.  
  2848.       if [ x"`${grub_probe} --device ${DEVICE} --target=partmap`" = xmsdos ]; then
  2849.       cat << EOF
  2850.     parttool \${root} hidden-
  2851. EOF
  2852.       fi
  2853.  
  2854.       case ${LONGNAME} in
  2855.     Windows\ Vista*|Windows\ 7*|Windows\ Server\ 2008*)
  2856.     ;;
  2857.     *)
  2858.       cat << EOF
  2859.     drivemap -s (hd0) \${root}
  2860. EOF
  2861.     ;;
  2862.       esac
  2863.  
  2864.       cat <<EOF
  2865.     chainloader +1
  2866. }
  2867. EOF
  2868.     ;;
  2869.     efi)
  2870.  
  2871.     found_other_os=1
  2872.     EFIPATH=${DEVICE#*@}
  2873.     DEVICE=${DEVICE%@*}
  2874.     onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
  2875.       cat << EOF
  2876. menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' $CLASS --class os \$menuentry_id_option 'osprober-efi-$(grub_get_device_id "${DEVICE}")' {
  2877. EOF
  2878.       save_default_entry | sed -e "s/^/\t/"
  2879.       prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
  2880.  
  2881.       cat <<EOF
  2882.     chainloader ${EFIPATH}
  2883. }
  2884. EOF
  2885.     ;;
  2886.     linux)
  2887.       if [ "x$BTRFS" = "xbtrfs" ]; then
  2888.          LINUXPROBED="`linux-boot-prober btrfs ${BTRFSuuid} ${BTRFSsubvol}  2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
  2889.       else
  2890.          LINUXPROBED="`linux-boot-prober ${DEVICE} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
  2891.       fi
  2892.       prepare_boot_cache=
  2893.       boot_device_id=
  2894.       is_top_level=true
  2895.       title_correction_code=
  2896.       OS="${LONGNAME}"
  2897.  
  2898.       for LINUX in ${LINUXPROBED} ; do
  2899.         LROOT="`echo ${LINUX} | cut -d ':' -f 1`"
  2900.         LBOOT="`echo ${LINUX} | cut -d ':' -f 2`"
  2901.         LLABEL="`echo ${LINUX} | cut -d ':' -f 3 | tr '^' ' '`"
  2902.         LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`"
  2903.         LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
  2904.         LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`"
  2905.  
  2906.         if [ -z "${LLABEL}" ] ; then
  2907.           LLABEL="${LONGNAME}"
  2908.         fi
  2909.  
  2910.     if [ "${LROOT}" != "${LBOOT}" ]; then
  2911.       LKERNEL="${LKERNEL#/boot}"
  2912.       LINITRD="${LINITRD#/boot}"
  2913.     fi
  2914.  
  2915.     if [ -z "${prepare_boot_cache}" ]; then
  2916.       prepare_boot_cache="$(prepare_grub_to_access_device ${LBOOT} | grub_add_tab)"
  2917.       [ "${prepare_boot_cache}" ] || continue
  2918.     fi
  2919.  
  2920.     found_other_os=1
  2921.     onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
  2922.     recovery_params="$(echo "${LPARAMS}" | grep 'single\|recovery')" || true
  2923.     counter=1
  2924.     while echo "$used_osprober_linux_ids" | grep 'osprober-gnulinux-$LKERNEL-${recovery_params}-$counter-$boot_device_id' > /dev/null; do
  2925.         counter=$((counter+1));
  2926.     done
  2927.     if [ -z "$boot_device_id" ]; then
  2928.         boot_device_id="$(grub_get_device_id "${DEVICE}")"
  2929.     fi
  2930.     used_osprober_linux_ids="$used_osprober_linux_ids 'osprober-gnulinux-$LKERNEL-${recovery_params}-$counter-$boot_device_id'"
  2931.  
  2932.     if [ "x$is_top_level" = xtrue ] && [ "x${GRUB_DISABLE_SUBMENU}" != xy ]; then
  2933.             cat << EOF
  2934. menuentry '$(echo "$OS $onstr" | grub_quote)' $CLASS --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-simple-$boot_device_id' {
  2935. EOF
  2936.         save_default_entry | grub_add_tab
  2937.         printf '%s\n' "${prepare_boot_cache}"
  2938.         cat <<  EOF
  2939.     linux ${LKERNEL} ${LPARAMS}
  2940. EOF
  2941.             if [ -n "${LINITRD}" ] ; then
  2942.           cat << EOF
  2943.     initrd ${LINITRD}
  2944. EOF
  2945.             fi
  2946.         cat << EOF
  2947. }
  2948. EOF
  2949.         echo "submenu '$(gettext_printf "Advanced options for %s" "${OS} $onstr" | grub_quote)' \$menuentry_id_option 'osprober-gnulinux-advanced-$boot_device_id' {"
  2950.         is_top_level=false
  2951.     fi
  2952.     title="${LLABEL} $onstr"
  2953.         cat << EOF
  2954.     menuentry '$(echo "$title" | grub_quote)' --class gnu-linux --class gnu --class os \$menuentry_id_option 'osprober-gnulinux-$LKERNEL-${recovery_params}-$boot_device_id' {
  2955. EOF
  2956.     save_default_entry | sed -e "s/^/$grub_tab$grub_tab/"
  2957.     printf '%s\n' "${prepare_boot_cache}" | grub_add_tab
  2958.     cat <<  EOF
  2959.         linux ${LKERNEL} ${LPARAMS}
  2960. EOF
  2961.         if [ -n "${LINITRD}" ] ; then
  2962.             cat << EOF
  2963.         initrd ${LINITRD}
  2964. EOF
  2965.         fi
  2966.         cat << EOF
  2967.     }
  2968. EOF
  2969.     if [ x"$title" = x"$GRUB_ACTUAL_DEFAULT" ] || [ x"Previous Linux versions>$title" = x"$GRUB_ACTUAL_DEFAULT" ]; then
  2970.         replacement_title="$(echo "Advanced options for ${OS} $onstr" | sed 's,>,>>,g')>$(echo "$title" | sed 's,>,>>,g')"
  2971.         quoted="$(echo "$GRUB_ACTUAL_DEFAULT" | grub_quote)"
  2972.         title_correction_code="${title_correction_code}if [ \"x\$default\" = '$quoted' ]; then default='$(echo "$replacement_title" | grub_quote)'; fi;"
  2973.         grub_warn "$(gettext_printf "Please don't use old title \`%s' for GRUB_DEFAULT, use \`%s' (for versions before 2.00) or \`%s' (for 2.00 or later)" "$GRUB_ACTUAL_DEFAULT" "$replacement_title" "gnulinux-advanced-$boot_device_id>gnulinux-$version-$type-$boot_device_id")"
  2974.     fi
  2975.       done
  2976.       if [ x"$is_top_level" != xtrue ]; then
  2977.       echo '}'
  2978.       fi
  2979.       echo "$title_correction_code"
  2980.     ;;
  2981.     macosx)
  2982.       if [ "${UUID}" ]; then
  2983.     OSXUUID="${UUID}"
  2984.     osx_entry xnu_kernel 32
  2985.     osx_entry xnu_kernel64 64
  2986.       fi
  2987.     ;;
  2988.     hurd)
  2989.       found_other_os=1
  2990.       onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
  2991.       cat << EOF
  2992. menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' --class hurd --class gnu --class os \$menuentry_id_option 'osprober-gnuhurd-/boot/gnumach.gz-false-$(grub_get_device_id "${DEVICE}")' {
  2993. EOF
  2994.       save_default_entry | grub_add_tab
  2995.       prepare_grub_to_access_device ${DEVICE} | grub_add_tab
  2996.       grub_device="`${grub_probe} --device ${DEVICE} --target=drive`"
  2997.       mach_device="`echo "${grub_device}" | sed -e 's/(\(hd.*\),msdos\(.*\))/\1s\2/'`"
  2998.       grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
  2999.       case "${grub_fs}" in
  3000.     *fs)    hurd_fs="${grub_fs}" ;;
  3001.     *)  hurd_fs="${grub_fs}fs" ;;
  3002.       esac
  3003.       cat << EOF
  3004.     multiboot /boot/gnumach.gz root=device:${mach_device}
  3005.     module /hurd/${hurd_fs}.static ${hurd_fs} --readonly \\
  3006.             --multiboot-command-line='\${kernel-command-line}' \\
  3007.             --host-priv-port='\${host-port}' \\
  3008.             --device-master-port='\${device-port}' \\
  3009.             --exec-server-task='\${exec-task}' -T typed '\${root}' \\
  3010.             '\$(task-create)' '\$(task-resume)'
  3011.     module /lib/ld.so.1 exec /hurd/exec '\$(exec-task=task-create)'
  3012. }
  3013. EOF
  3014.     ;;
  3015.     minix)
  3016.       cat << EOF
  3017. menuentry "${LONGNAME} (on ${DEVICE}, Multiboot)" {
  3018. EOF
  3019.          save_default_entry | sed -e "s/^/\t/"
  3020.          prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
  3021.      cat << EOF
  3022.     multiboot /boot/image_latest
  3023. }
  3024. EOF
  3025.     ;;
  3026.     *)
  3027.       # TRANSLATORS: %s is replaced by OS name.
  3028.       gettext_printf "%s is not yet supported by grub-mkconfig.\n" "  ${LONGNAME}" >&2
  3029.     ;;
  3030.   esac
  3031. done
  3032.  
  3033. adjust_timeout
  3034.  
  3035. ******************************************
  3036. /etc/grub.d/30_uefi-firmware
  3037. ******************************************
  3038. #! /bin/sh
  3039. set -e
  3040.  
  3041. # grub-mkconfig helper script.
  3042. # Copyright (C) 2012  Free Software Foundation, Inc.
  3043. #
  3044. # GRUB is free software: you can redistribute it and/or modify
  3045. # it under the terms of the GNU General Public License as published by
  3046. # the Free Software Foundation, either version 3 of the License, or
  3047. # (at your option) any later version.
  3048. #
  3049. # GRUB is distributed in the hope that it will be useful,
  3050. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  3051. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  3052. # GNU General Public License for more details.
  3053. #
  3054. # You should have received a copy of the GNU General Public License
  3055. # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
  3056.  
  3057. prefix="/usr"
  3058. exec_prefix="/usr"
  3059. datarootdir="/usr/share"
  3060.  
  3061. export TEXTDOMAIN=grub
  3062. export TEXTDOMAINDIR="${datarootdir}/locale"
  3063.  
  3064. . "${datarootdir}/grub/grub-mkconfig_lib"
  3065.  
  3066. efi_vars_dir=/sys/firmware/efi/vars
  3067. EFI_GLOBAL_VARIABLE=8be4df61-93ca-11d2-aa0d-00e098032b8c
  3068. OsIndications="$efi_vars_dir/OsIndicationsSupported-$EFI_GLOBAL_VARIABLE/data"
  3069.  
  3070. if [ -e "$OsIndications" ] && \
  3071.    [ "$(( $(printf 0x%x \'"$(cat $OsIndications | cut -b1)") & 1 ))" = 1 ]; then
  3072.   LABEL="System setup"
  3073.  
  3074.   gettext_printf "Adding boot menu entry for EFI firmware configuration\n" >&2
  3075.  
  3076.   onstr="$(gettext_printf "(on %s)" "${DEVICE}")"
  3077.  
  3078.   cat << EOF
  3079. menuentry '$LABEL' \$menuentry_id_option 'uefi-firmware' {
  3080.     fwsetup
  3081. }
  3082. EOF
  3083. fi
  3084.  
  3085. ******************************************
  3086. /etc/grub.d/40_custom
  3087. ******************************************
  3088. #!/bin/sh
  3089. exec tail -n +3 $0
  3090. # This file provides an easy way to add custom menu entries.  Simply type the
  3091. # menu entries you want to add after this comment.  Be careful not to change
  3092. # the 'exec tail' line above.
  3093.  
  3094. ******************************************
  3095. /etc/grub.d/41_custom
  3096. ******************************************
  3097. #!/bin/sh
  3098. cat <<EOF
  3099. if [ -f  \${config_directory}/custom.cfg ]; then
  3100.   source \${config_directory}/custom.cfg
  3101. elif [ -z "\${config_directory}" -a -f  \$prefix/custom.cfg ]; then
  3102.   source \$prefix/custom.cfg;
  3103. fi
  3104. EOF
  3105.  
  3106.  
  3107. ******************************************
  3108. /etc/grub.d/README
  3109. ******************************************
  3110.  
  3111. All executable files in this directory are processed in shell expansion order.
  3112.  
  3113.   00_*: Reserved for 00_header.
  3114.   10_*: Native boot entries.
  3115.   20_*: Third party apps (e.g. memtest86+).
  3116.  
  3117. The number namespace in-between is configurable by system installer and/or
  3118. administrator.  For example, you can add an entry to boot another OS as
  3119. 01_otheros, 11_otheros, etc, depending on the position you want it to occupy in
  3120. the menu; and then adjust the default setting via /etc/default/grub.
  3121.  
  3122. ******************************************
  3123. /boot/grub/device.map
  3124. ******************************************
  3125. (hd0)   /dev/disk/by-id/ata-Samsung_SSD_860_EVO_500GB_S3Z2NB0KA40657Z
  3126. (hd1)   /dev/disk/by-id/usb-SABRENT_SABRENT_DB9876543214E-0:0
  3127. (hd2)   /dev/disk/by-id/usb-Generic_Flash_Disk_BD2350DA-0:0
  3128.  
  3129. ******************************************
  3130. grub-mkdevicemap
  3131. ******************************************
  3132. (hd0)   /dev/disk/by-id/ata-Samsung_SSD_860_EVO_500GB_S3Z2NB0KA40657Z
  3133. (hd1)   /dev/disk/by-id/usb-SABRENT_SABRENT_DB9876543214E-0:0
  3134. (hd2)   /dev/disk/by-id/usb-Generic_Flash_Disk_BD2350DA-0:0
  3135.  
  3136. ******************************************
  3137. Pacchetti che contengono "grub"
  3138. ******************************************
  3139. ii  grub-common                           2.02+dfsg1-20                        amd64        GRand Unified Bootloader (common files)
  3140. ii  grub-pc                               2.02+dfsg1-20                        amd64        GRand Unified Bootloader, version 2 (PC/BIOS version)
  3141. ii  grub-pc-bin                           2.02+dfsg1-20                        amd64        GRand Unified Bootloader, version 2 (PC/BIOS modules)
  3142. ii  grub2-common                          2.02+dfsg1-20                        amd64        GRand Unified Bootloader (common files for version 2)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top