Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Script started on 2021-12-11 10:34:49+00:00 [TERM="linux" TTY="/dev/tty1" COLUMNS="240" LINES="67"]
- root@archiso ~ # lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- loop0 7:0 0 610.1M 1 loop /run/archiso/sfs/airootfs
- sda 8:0 0 238.5G 0 disk
- ├─sda1 8:1 0 512M 0 part
- └─sda2 8:2 0 238G 0 part
- sdb 8:16 1 1.9G 0 disk /run/archiso/bootmnt
- ├─sdb1 8:17 1 671M 0 part
- ├─sdb2 8:18 1 60M 0 part
- └─sdb3 8:19 1 300K 0 part
- root@archiso ~ # cryptsetup open /dev/sda2 cryptlvm
- WARNING: Locking directory /run/cryptsetup is missing!
- Enter passphrase for /dev/sda2:
- cryptsetup open /dev/sda2 cryptlvm 6.29s user 0.38s system 54% cpu 12.154 total
- root@archiso ~ # lsblk
- NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
- loop0 7:0 0 610.1M 1 loop /run/archiso/sfs/airootfs
- sda 8:0 0 238.5G 0 disk
- ├─sda1 8:1 0 512M 0 part
- └─sda2 8:2 0 238G 0 part
- └─cryptlvm 254:0 0 238G 0 crypt
- ├─MyVolGroup-swap 254:1 0 8G 0 lvm
- └─MyVolGroup-root 254:2 0 230G 0 lvm
- sdb 8:16 1 1.9G 0 disk /run/archiso/bootmnt
- ├─sdb1 8:17 1 671M 0 part
- ├─sdb2 8:18 1 60M 0 part
- └─sdb3 8:19 1 300K 0 part
- root@archiso ~ # lsu/mntdev/
- root@archiso ~ # mount /dev/MyVolGroup/root /mnt/
- root@archiso ~ # mount /dev/MyVolGroup/root /mnt/boot
- root@archiso ~ # cd /mnt/
- root@archiso /mnt # arch-chroot .
- [root@archiso /]# cat /etc/mkinitcpio.conf
- # vim:set ft=sh
- # MODULES
- # The following modules are loaded before any boot hooks are
- # run. Advanced users may wish to specify all system modules
- # in this array. For instance:
- # MODULES=(piix ide_disk reiserfs)
- MODULES=()
- # BINARIES
- # This setting includes any additional binaries a given user may
- # wish into the CPIO image. This is run last, so it may be used to
- # override the actual binaries included by a given hook
- # BINARIES are dependency parsed, so you may safely ignore libraries
- BINARIES=()
- # FILES
- # This setting is similar to BINARIES above, however, files are added
- # as-is and are not parsed in any way. This is useful for config files.
- FILES=()
- # HOOKS
- # This is the most important setting in this file. The HOOKS control the
- # modules and scripts added to the image, and what happens at boot time.
- # Order is important, and it is recommended that you do not change the
- # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
- # help on a given hook.
- # 'base' is _required_ unless you know precisely what you are doing.
- # 'udev' is _required_ in order to automatically load modules
- # 'filesystems' is _required_ unless you specify your fs modules in MODULES
- # Examples:
- ## This setup specifies all modules in the MODULES setting above.
- ## No raid, lvm2, or encrypted root is needed.
- # HOOKS=(base)
- #
- ## This setup will autodetect all modules for your system and should
- ## work as a sane default
- # HOOKS=(base udev autodetect block filesystems)
- #
- ## This setup will generate a 'full' image which supports most systems.
- ## No autodetection is done.
- # HOOKS=(base udev block filesystems)
- #
- ## This setup assembles a pata mdadm array with an encrypted root FS.
- ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
- # HOOKS=(base udev block mdadm encrypt filesystems)
- #
- ## This setup loads an lvm2 volume group on a usb device.
- # HOOKS=(base udev block lvm2 filesystems)
- #
- ## NOTE: If you have /usr on a separate partition, you MUST include the
- # usr, fsck and shutdown hooks.
- HOOKS=(base udev autodetect keyboard keymap consolefont modconf block encrypt lvm2 filesystems fsck)
- # COMPRESSION
- # Use this to compress the initramfs image. By default, gzip compression
- # is used. Use 'cat' to create an uncompressed image.
- #COMPRESSION="gzip"
- #COMPRESSION="bzip2"
- #COMPRESSION="lzma"
- #COMPRESSION="xz"
- #COMPRESSION="lzop"
- #COMPRESSION="lz4"
- # COMPRESSION_OPTIONS
- # Additional options for the compressor
- #COMPRESSION_OPTIONS=()
- [root@archiso /]# ~
- ~avahi/ ~cups/ ~flatpak/ ~git/ ~mail/ ~polkitd/ ~saned/ ~systemd-oom/ ~usbmux/
- ~bin/ ~daemon/ ~ftp/ ~gluster ~named/ ~root/ ~systemd-coredump/ ~systemd-resolve/ ~uuidd/
- ~brltty/ ~dbus/ ~gdm/ ~http/ ~nobody/ ~rpc/ ~systemd-journal-remote/ ~systemd-timesync/ ~volker/
- ~colord/ ~dhcpcd/ ~geoclue/ ~ila_user/ ~nvidia-persistenced/ ~rtkit/ ~systemd-network/ ~testuser/
- [root@archiso /]# cat /etc/default/grub
- # GRUB boot loader configuration
- GRUB_DEFAULT=0
- GRUB_TIMEOUT=5
- GRUB_DISTRIBUTOR="Arch"
- GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 root=/dev/MyVolGroup/root cryptdevice=/dev/disk/by-uuid/65280982-f6db-45b8-906e-a376855b34dc:cryptlvm crypto=::::"
- GRUB_CMDLINE_LINUX=""
- # Preload both GPT and MBR modules so that they are not missed
- GRUB_PRELOAD_MODULES="part_gpt part_msdos"
- # Uncomment to enable booting from LUKS encrypted devices
- #GRUB_ENABLE_CRYPTODISK=y
- # Set to 'countdown' or 'hidden' to change timeout behavior,
- # press ESC key to display menu.
- GRUB_TIMEOUT_STYLE=menu
- # Uncomment to use basic console
- GRUB_TERMINAL_INPUT=console
- # Uncomment to disable graphical terminal
- #GRUB_TERMINAL_OUTPUT=console
- # The resolution used on graphical terminal
- # note that you can use only modes which your graphic card supports via VBE
- # you can see them in real GRUB with the command `vbeinfo'
- GRUB_GFXMODE=auto
- # Uncomment to allow the kernel use the same resolution used by grub
- GRUB_GFXPAYLOAD_LINUX=keep
- # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
- # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
- #GRUB_DISABLE_LINUX_UUID=true
- # Uncomment to disable generation of recovery mode menu entries
- GRUB_DISABLE_RECOVERY=true
- # Uncomment and set to the desired menu colors. Used by normal and wallpaper
- # modes only. Entries specified as foreground/background.
- #GRUB_COLOR_NORMAL="light-blue/black"
- #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
- # Uncomment one of them for the gfx desired, a image background or a gfxtheme
- #GRUB_BACKGROUND="/path/to/wallpaper"
- #GRUB_THEME="/path/to/gfxtheme"
- # Uncomment to get a beep at GRUB start
- #GRUB_INIT_TUNE="480 440 1"
- # Uncomment to make GRUB remember the last selection. This requires
- # setting 'GRUB_DEFAULT=saved' above.
- #GRUB_SAVEDEFAULT="true"
- [root@archiso /]# mkinitcpio -P
- ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
- -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
- ==> Starting build: 5.15.7-arch1-1
- -> Running build hook: [base]
- -> Running build hook: [udev]
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- -> Running build hook: [autodetect]
- -> Running build hook: [keyboard]
- ==> WARNING: Possibly missing firmware for module: xhci_pci
- -> Running build hook: [keymap]
- -> Running build hook: [consolefont]
- ==> WARNING: consolefont: no font found in configuration
- -> Running build hook: [modconf]
- -> Running build hook: [block]
- -> Running build hook: [encrypt]
- ==> WARNING: Possibly missing firmware for module: qat_4xxx
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- -> Running build hook: [lvm2]
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/install/lvm2: line 33: add_udev_rule: command not found
- -> Running build hook: [filesystems]
- -> Running build hook: [fsck]
- ==> Generating module dependencies
- ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux.img
- ==> Image generation successful
- ==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
- -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
- ==> Starting build: 5.15.7-arch1-1
- -> Running build hook: [base]
- -> Running build hook: [udev]
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- -> Running build hook: [keyboard]
- ==> WARNING: Possibly missing firmware for module: xhci_pci
- -> Running build hook: [keymap]
- -> Running build hook: [consolefont]
- ==> WARNING: consolefont: no font found in configuration
- -> Running build hook: [modconf]
- -> Running build hook: [block]
- ==> WARNING: Possibly missing firmware for module: wd719x
- ==> WARNING: Possibly missing firmware for module: aic94xx
- -> Running build hook: [encrypt]
- ==> WARNING: Possibly missing firmware for module: qat_4xxx
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- -> Running build hook: [lvm2]
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/functions: line 196: add_udev_rule: command not found
- /usr/lib/initcpio/install/lvm2: line 33: add_udev_rule: command not found
- -> Running build hook: [filesystems]
- -> Running build hook: [fsck]
- ==> Generating module dependencies
- ==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-fallback.img
- ==> Image generation successful
- [root@archiso /]# grub-installP--target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB --removable
- Installing for x86_64-efi platform.
- Installation finished. No error reported.
- [root@archiso /]# grub-mkconfig -o /boot/grub/grub.cfg
- Generating grub configuration file ...
- Found linux image: /boot/vmlinuz-linux
- Found initrd image: /boot/initramfs-linux.img
- Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
- Warning: os-prober will not be executed to detect other bootable partitions.
- Systems on them will not be added to the GRUB boot configuration.
- Check GRUB_DISABLE_OS_PROBER documentation entry.
- Adding boot menu entry for UEFI Firmware Settings ...
- done
- [root@archiso /]# exit
- exit
- arch-chroot . 9.32s user 5.57s system 2% cpu 10:57.33 total
- root@archiso /mnt # exit
- Script done on 2021-12-11 10:48:30+00:00 [COMMAND_EXIT_CODE="0"]
Advertisement
Add Comment
Please, Sign In to add comment