volker_weissmann

Untitled

Dec 11th, 2021
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.23 KB | None | 0 0
  1. Script started on 2021-12-11 10:34:49+00:00 [TERM="linux" TTY="/dev/tty1" COLUMNS="240" LINES="67"]
  2. root@archiso ~ # lsblk
  3. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  4. loop0 7:0 0 610.1M 1 loop /run/archiso/sfs/airootfs
  5. sda 8:0 0 238.5G 0 disk
  6. ├─sda1 8:1 0 512M 0 part
  7. └─sda2 8:2 0 238G 0 part
  8. sdb 8:16 1 1.9G 0 disk /run/archiso/bootmnt
  9. ├─sdb1 8:17 1 671M 0 part
  10. ├─sdb2 8:18 1 60M 0 part
  11. └─sdb3 8:19 1 300K 0 part
  12. root@archiso ~ # cryptsetup open /dev/sda2 cryptlvm
  13. WARNING: Locking directory /run/cryptsetup is missing!
  14. Enter passphrase for /dev/sda2:
  15. cryptsetup open /dev/sda2 cryptlvm 6.29s user 0.38s system 54% cpu 12.154 total
  16. root@archiso ~ # lsblk
  17. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
  18. loop0 7:0 0 610.1M 1 loop /run/archiso/sfs/airootfs
  19. sda 8:0 0 238.5G 0 disk
  20. ├─sda1 8:1 0 512M 0 part
  21. └─sda2 8:2 0 238G 0 part
  22. └─cryptlvm 254:0 0 238G 0 crypt
  23. ├─MyVolGroup-swap 254:1 0 8G 0 lvm
  24. └─MyVolGroup-root 254:2 0 230G 0 lvm
  25. sdb 8:16 1 1.9G 0 disk /run/archiso/bootmnt
  26. ├─sdb1 8:17 1 671M 0 part
  27. ├─sdb2 8:18 1 60M 0 part
  28. └─sdb3 8:19 1 300K 0 part
  29. root@archiso ~ # lsu/mntdev/
  30. root@archiso ~ # mount /dev/MyVolGroup/root /mnt/
  31. root@archiso ~ # mount /dev/MyVolGroup/root /mnt/boot
  32. root@archiso ~ # cd /mnt/
  33. root@archiso /mnt # arch-chroot .
  34. [root@archiso /]# cat /etc/mkinitcpio.conf
  35. # vim:set ft=sh
  36. # MODULES
  37. # The following modules are loaded before any boot hooks are
  38. # run. Advanced users may wish to specify all system modules
  39. # in this array. For instance:
  40. # MODULES=(piix ide_disk reiserfs)
  41. MODULES=()
  42.  
  43. # BINARIES
  44. # This setting includes any additional binaries a given user may
  45. # wish into the CPIO image. This is run last, so it may be used to
  46. # override the actual binaries included by a given hook
  47. # BINARIES are dependency parsed, so you may safely ignore libraries
  48. BINARIES=()
  49.  
  50. # FILES
  51. # This setting is similar to BINARIES above, however, files are added
  52. # as-is and are not parsed in any way. This is useful for config files.
  53. FILES=()
  54.  
  55. # HOOKS
  56. # This is the most important setting in this file. The HOOKS control the
  57. # modules and scripts added to the image, and what happens at boot time.
  58. # Order is important, and it is recommended that you do not change the
  59. # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
  60. # help on a given hook.
  61. # 'base' is _required_ unless you know precisely what you are doing.
  62. # 'udev' is _required_ in order to automatically load modules
  63. # 'filesystems' is _required_ unless you specify your fs modules in MODULES
  64. # Examples:
  65. ## This setup specifies all modules in the MODULES setting above.
  66. ## No raid, lvm2, or encrypted root is needed.
  67. # HOOKS=(base)
  68. #
  69. ## This setup will autodetect all modules for your system and should
  70. ## work as a sane default
  71. # HOOKS=(base udev autodetect block filesystems)
  72. #
  73. ## This setup will generate a 'full' image which supports most systems.
  74. ## No autodetection is done.
  75. # HOOKS=(base udev block filesystems)
  76. #
  77. ## This setup assembles a pata mdadm array with an encrypted root FS.
  78. ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
  79. # HOOKS=(base udev block mdadm encrypt filesystems)
  80. #
  81. ## This setup loads an lvm2 volume group on a usb device.
  82. # HOOKS=(base udev block lvm2 filesystems)
  83. #
  84. ## NOTE: If you have /usr on a separate partition, you MUST include the
  85. # usr, fsck and shutdown hooks.
  86. HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)
  87.  
  88. # COMPRESSION
  89. # Use this to compress the initramfs image. By default, gzip compression
  90. # is used. Use 'cat' to create an uncompressed image.
  91. #COMPRESSION="gzip"
  92. #COMPRESSION="bzip2"
  93. #COMPRESSION="lzma"
  94. #COMPRESSION="xz"
  95. #COMPRESSION="lzop"
  96. #COMPRESSION="lz4"
  97.  
  98. # COMPRESSION_OPTIONS
  99. # Additional options for the compressor
  100. #COMPRESSION_OPTIONS=()
  101. [root@archiso /]# ~
  102. ~avahi/ ~cups/ ~flatpak/ ~git/ ~mail/ ~polkitd/ ~saned/ ~systemd-oom/ ~usbmux/
  103. ~bin/ ~daemon/ ~ftp/ ~gluster ~named/ ~root/ ~systemd-coredump/ ~systemd-resolve/ ~uuidd/
  104. ~brltty/ ~dbus/ ~gdm/ ~http/ ~nobody/ ~rpc/ ~systemd-journal-remote/ ~systemd-timesync/ ~volker/
  105. ~colord/ ~dhcpcd/ ~geoclue/ ~ila_user/ ~nvidia-persistenced/ ~rtkit/ ~systemd-network/ ~testuser/
  106. [root@archiso /]# cat /etc/default/grub
  107. # GRUB boot loader configuration
  108.  
  109. GRUB_DEFAULT=0
  110. GRUB_TIMEOUT=5
  111. GRUB_DISTRIBUTOR="Arch"
  112. GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 root=/dev/MyVolGroup/root cryptdevice=/dev/disk/by-uuid/65280982-f6db-45b8-906e-a376855b34dc:cryptlvm crypto=::::"
  113. GRUB_CMDLINE_LINUX=""
  114.  
  115. # Preload both GPT and MBR modules so that they are not missed
  116. GRUB_PRELOAD_MODULES="part_gpt part_msdos"
  117.  
  118. # Uncomment to enable booting from LUKS encrypted devices
  119. #GRUB_ENABLE_CRYPTODISK=y
  120.  
  121. # Set to 'countdown' or 'hidden' to change timeout behavior,
  122. # press ESC key to display menu.
  123. GRUB_TIMEOUT_STYLE=menu
  124.  
  125. # Uncomment to use basic console
  126. GRUB_TERMINAL_INPUT=console
  127.  
  128. # Uncomment to disable graphical terminal
  129. #GRUB_TERMINAL_OUTPUT=console
  130.  
  131. # The resolution used on graphical terminal
  132. # note that you can use only modes which your graphic card supports via VBE
  133. # you can see them in real GRUB with the command `vbeinfo'
  134. GRUB_GFXMODE=auto
  135.  
  136. # Uncomment to allow the kernel use the same resolution used by grub
  137. GRUB_GFXPAYLOAD_LINUX=keep
  138.  
  139. # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
  140. # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
  141. #GRUB_DISABLE_LINUX_UUID=true
  142.  
  143. # Uncomment to disable generation of recovery mode menu entries
  144. GRUB_DISABLE_RECOVERY=true
  145.  
  146. # Uncomment and set to the desired menu colors. Used by normal and wallpaper
  147. # modes only. Entries specified as foreground/background.
  148. #GRUB_COLOR_NORMAL="light-blue/black"
  149. #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
  150.  
  151. # Uncomment one of them for the gfx desired, a image background or a gfxtheme
  152. #GRUB_BACKGROUND="/path/to/wallpaper"
  153. #GRUB_THEME="/path/to/gfxtheme"
  154.  
  155. # Uncomment to get a beep at GRUB start
  156. #GRUB_INIT_TUNE="480 440 1"
  157.  
  158. # Uncomment to make GRUB remember the last selection. This requires
  159. # setting 'GRUB_DEFAULT=saved' above.
  160. #GRUB_SAVEDEFAULT="true"
  161. [root@archiso /]# mkinitcpio -P
  162. ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
  163. -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
  164. ==> Starting build: 5.15.7-arch1-1
  165. -> Running build hook: [base]
  166. -> Running build hook: [udev]
  167. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  168. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  169. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  170. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  171. -> Running build hook: [autodetect]
  172. -> Running build hook: [keyboard]
  173. ==> WARNING: Possibly missing firmware for module: xhci_pci
  174. -> Running build hook: [keymap]
  175. -> Running build hook: [consolefont]
  176. ==> WARNING: consolefont: no font found in configuration
  177. -> Running build hook: [modconf]
  178. -> Running build hook: [block]
  179. -> Running build hook: [encrypt]
  180. ==> WARNING: Possibly missing firmware for module: qat_4xxx
  181. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  182. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  183. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  184. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  185. -> Running build hook: [lvm2]
  186. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  187. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  188. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  189. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  190. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  191. /usr/lib/initcpio/install/lvm2: line 33: add_udev_rule: command not found
  192. -> Running build hook: [filesystems]
  193. -> Running build hook: [fsck]
  194. ==> Generating module dependencies
  195. ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
  196. ==> Image generation successful
  197. ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
  198. -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
  199. ==> Starting build: 5.15.7-arch1-1
  200. -> Running build hook: [base]
  201. -> Running build hook: [udev]
  202. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  203. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  204. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  205. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  206. -> Running build hook: [keyboard]
  207. ==> WARNING: Possibly missing firmware for module: xhci_pci
  208. -> Running build hook: [keymap]
  209. -> Running build hook: [consolefont]
  210. ==> WARNING: consolefont: no font found in configuration
  211. -> Running build hook: [modconf]
  212. -> Running build hook: [block]
  213. ==> WARNING: Possibly missing firmware for module: wd719x
  214. ==> WARNING: Possibly missing firmware for module: aic94xx
  215. -> Running build hook: [encrypt]
  216. ==> WARNING: Possibly missing firmware for module: qat_4xxx
  217. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  218. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  219. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  220. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  221. -> Running build hook: [lvm2]
  222. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  223. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  224. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  225. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  226. /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
  227. /usr/lib/initcpio/install/lvm2: line 33: add_udev_rule: command not found
  228. -> Running build hook: [filesystems]
  229. -> Running build hook: [fsck]
  230. ==> Generating module dependencies
  231. ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
  232. ==> Image generation successful
  233. [root@archiso /]# grub-installP--target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB --removable
  234. Installing for x86_64-efi platform.
  235. Installation finished. No error reported.
  236. [root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg
  237. Generating grub configuration file ...
  238. Found linux image: /boot/vmlinuz-linux
  239. Found initrd image: /boot/initramfs-linux.img
  240. Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
  241. Warning: os-prober will not be executed to detect other bootable partitions.
  242. Systems on them will not be added to the GRUB boot configuration.
  243. Check GRUB_DISABLE_OS_PROBER documentation entry.
  244. Adding boot menu entry for UEFI Firmware Settings ...
  245. done
  246. [root@archiso /]# exit
  247. exit
  248. arch-chroot . 9.32s user 5.57s system 2% cpu 10:57.33 total
  249. root@archiso /mnt # exit
  250.  
  251. Script done on 2021-12-11 10:48:30+00:00 [COMMAND_EXIT_CODE="0"]
Advertisement
Add Comment
Please, Sign In to add comment