<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — Install Hyperbola  (GRUB on the USB) Libreboot T440P]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=937&amp;type=atom" />
	<updated>2023-12-02T21:29:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=937</id>
		<entry>
			<title type="html"><![CDATA[Re: Install Hyperbola  (GRUB on the USB) Libreboot T440P]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6823#p6823" />
			<content type="html"><![CDATA[<p>Thank you also for your communication, I hope our community will grow, I will try to help as much as I can.</p>]]></content>
			<author>
				<name><![CDATA[jim]]></name>
			</author>
			<updated>2023-12-02T21:29:23Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6823#p6823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Install Hyperbola  (GRUB on the USB) Libreboot T440P]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6821#p6821" />
			<content type="html"><![CDATA[<p>Surely interesting thanks for the link, nevertheless the lvm-option was not that on my perspective as in IRC it was discussed other way. Personal it would make the guide sufficient when leaving the advantages for lvm-usage. So thank you for your engagement within this. <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2023-12-02T21:06:02Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6821#p6821</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Install Hyperbola  (GRUB on the USB) Libreboot T440P]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6819#p6819" />
			<content type="html"><![CDATA[<p>Do you mean this option <a href="https://gist.github.com/ansulev/4e56401c05afccbf221e55e886eb5838">https://gist.github.com/ansulev/4e56401 … e886eb5838</a> ?</p>]]></content>
			<author>
				<name><![CDATA[jim]]></name>
			</author>
			<updated>2023-12-02T20:54:21Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6819#p6819</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Install Hyperbola  (GRUB on the USB) Libreboot T440P]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6817#p6817" />
			<content type="html"><![CDATA[<p>What was asked is &quot;Plain dm-crypt&quot; in IRC also.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2023-12-02T20:32:00Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6817#p6817</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Install Hyperbola  (GRUB on the USB) Libreboot T440P]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6816#p6816" />
			<content type="html"><![CDATA[<p>Hello . Which option after the encrypted /boot partition do you consider preferable? <a href="https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system">https://wiki.archlinux.org/title/Dm-cry … ire_system</a> </p><p>#LUKS on a partition</p><p>#LUKS on a partition with TPM2 and Secure Boot</p><p>#LVM on LUKS</p><p>#LUKS on LVM</p><p>#LUKS on software RAID</p><p>#Plain dm-crypt</p><p>#Encrypted boot partition (GRUB)</p><p>#Root on ZFS &nbsp; &nbsp; </p><p>I read a little about OpeBSD, there is no such complex boot system as in LInux, I mean:</p><p>The bootloader finds and starts the kernel, and the kernel starts the operating system, attaches device drivers to the hardware, and performs other operating system configurations. Finally, the kernel runs init(8), which starts various processes and includes user programs, network interfaces, daemons, etc.</p><p>For example, openbsd does not have a /boot partition, like Linux, and there is no initramfs. The kernel is located only in the root partition.</p>]]></content>
			<author>
				<name><![CDATA[jim]]></name>
			</author>
			<updated>2023-12-02T19:37:27Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6816#p6816</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Install Hyperbola  (GRUB on the USB) Libreboot T440P]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6809#p6809" />
			<content type="html"><![CDATA[<p>Why using lvm? Would it be possible to do that without?</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2023-12-01T11:41:48Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6809#p6809</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Install Hyperbola  (GRUB on the USB) Libreboot T440P]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=6808#p6808" />
			<content type="html"><![CDATA[<p>Hi all . I continue to share my tests))</p><p><strong>Don&#039;t use Luks1 it is not safe, use Luks2+argon2id today!</strong><br />Since version 2.4.0 (released August 18, 2021), cryptsetup uses Argon2id by default. You can read why in detail in this article.<br /><a href="https://mjg59.dreamwidth.org/66429.html">https://mjg59.dreamwidth.org/66429.html</a></p><p>Insert your USB from Hyperbola Media Live into your PC. Turn on your PC and press ESC until the menu appears,<br />press the number corresponding to your USB with Hyperbola Media Live, then you will be taken to Hyperbola Media Live</p><p>Enlarge the text to make it easier to see) </p><div class="codebox"><pre><code>root@hyperiso # cd /usr/share/consolefonts

root@hyperiso # setfonts sun12X22.psfu.gz</code></pre></div><p>Now the font size is normal, you can move on))</p><div class="codebox"><pre><code># lsblk</code></pre></div><p>use dd for erase data</p><div class="codebox"><pre><code># dd if=/dev/urandom  of=/dev/sdb bs=1M status=progress</code></pre></div><br /><p>Create partitions</p><div class="codebox"><pre><code>cfdisk /dev/sdb
/dev/sdb  -&gt; The rest of the disk (LVM) # To be encrypted 
now we have sdb1 </code></pre></div><br /><div class="codebox"><pre><code># lsblk (check)</code></pre></div><br /><p>Connect internet,</p><div class="codebox"><pre><code># ip -c a

# rc-service dcpcd start

# ip link set enp0s35 up

# dhcpd enp0s35</code></pre></div><p> </p><p>Let&#039;s set up encryption</p><div class="codebox"><pre><code># pacman -Syy cryptsetup 

# rc-update add lvm boot

# rc-update add dmcrypt boot 

# modprobe dm-mod</code></pre></div><br /><p>Configuring LUKS (luks2)<br /></p><div class="codebox"><pre><code># cryptsetup --cipher aes-xts-plain64 --hash sha512 --iter-time 5000 --key-size 512 --pbkdf argon2id 
                                --use-urandom --verify-passphrase luksFormat --type luks2 /dev/sdb2</code></pre></div><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </p><p>Unlock the LUKS partition<br /></p><div class="codebox"><pre><code># cryptsetup open /dev/sdb1 lvm</code></pre></div><p>Create a physical volume on top of the opened LUKS container<br /></p><div class="codebox"><pre><code># pvcreate /dev/mapper/lvm</code></pre></div><div class="codebox"><pre><code># pvs  (check) </code></pre></div><br /><p>Create the volume group, adding the physical volume to it<br /></p><div class="codebox"><pre><code># vgcreate  matrix /dev/mapper/lvm</code></pre></div><div class="codebox"><pre><code># vgs (check) </code></pre></div><br /><p>Create logical volumes on the volume group (the size of the volumes are meant as examples)</p><div class="codebox"><pre><code># lvcreate -L 10G -n root  matrix
# lvcreate -l 100%FREE -n home  matrix</code></pre></div><br /><p>Format the filesystems on each logical volume<br /></p><div class="codebox"><pre><code># mkfs.ext4 /dev/mapper/matrix-root
# mkfs.ext4 /dev/mapper/matrix-home</code></pre></div><br /><br /><p>Mount the filesystems<br /></p><div class="codebox"><pre><code># mount /dev/mapper/matrix-root /mnt
# mkdir /mnt/home
# mount /dev/mapper/matrix-home /mnt/home</code></pre></div><br /><p>Prepare the boot partition:<br /> Insert USB into PC. (for me it&#039;s sdd)<br />use dd for erase data<br /></p><div class="codebox"><pre><code># dd if=/dev/urandom  of=/dev/sdd bs=1M status=progress
# mkfs.ext2 /dev/sdd
# mkdir /mnt/boot
# mount  /dev/sdd /mnt/boot</code></pre></div><div class="codebox"><pre><code># lsblk (check)</code></pre></div><br /><p>Select installation mirror by editing the mirrorlist<br /></p><div class="codebox"><pre><code># nano /etc/pacman.d/mirrorlist</code></pre></div><br /><p>Install the base system using pacstrap<br /></p><div class="codebox"><pre><code># pacstrap /mnt</code></pre></div><p>Generate a fstab file<br /></p><div class="codebox"><pre><code># genfstab -U -p /mnt &gt;&gt; /mnt/etc/fstab
# cat /mnt/etc/fstab  (check)</code></pre></div><br /><p>Enter the new system<br /></p><div class="codebox"><pre><code># arch-chroot /mnt</code></pre></div><p>or<br /></p><div class="codebox"><pre><code># arch-chroot /mnt /bin/bash</code></pre></div><br /><p>Configure /etc/mkinitcpio.conf for encryption and LVM</p><div class="codebox"><pre><code># nano /etc/mkinitcpio.conf 

MODULES=i915

HOOKS=&quot;base udev autodetect modconf block keyboard keymap consolefont encrypt lvm2 filesystems fsck shutdown&quot; </code></pre></div><br /><p>Update Kernel<br /></p><div class="codebox"><pre><code># mkinitcpio -p linux-libre-lts</code></pre></div><p>==&gt;ERROR Hook &#039;encrypt&#039;...<br />==&gt;WARNING missing isci..</p><p>OK,<br /></p><div class="codebox"><pre><code># pacman -S cryptsetup 
# pacman -S core/isci-lts-firmware
# mkinitcpio -p linux-libre-lts </code></pre></div><br /><p>Set the hostname<br /></p><div class="codebox"><pre><code># echo &quot;hyperbola&quot; &gt; /etc/hostname</code></pre></div><div class="codebox"><pre><code># nano /etc/hosts

127.0.0.1   localhost.localdomain     localhost   hyperbola
::1              localhost.localdomain     localhost   hyperbola</code></pre></div><br /><p>Set password for root</p><div class="codebox"><pre><code># passwd

****************************
****************************</code></pre></div><p>Install and configure GRUB<br /></p><div class="codebox"><pre><code># pacman -S grub </code></pre></div><br /><p>Install GRUB on the USB drive:<br /></p><div class="codebox"><pre><code># grub-install /dev/sdd --force</code></pre></div> <br /><p> I received this warning:</p><div class="codebox"><pre><code>grub-install: warning: File system `ext2&#039; doesn&#039;t support embedding.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged.. 
 </code></pre></div><p>The Internet answers us)))) <a href="https://superuser.com/questions/936889/booting-a-usb-from-the-grub-command-prompt">https://superuser.com/questions/936889/ … and-prompt</a></p><p> You are getting the warning because you are installing grub to a partition instead of the MBR. This means grub can not be embedded in the unused space between the MBR and the first partition. Instead it has to have the list of blocks that /boot/grub/core.img resides in placed into the MBR. This setup is subject to being broken by things like defrag and so is not recommended, hence the warning. Since it is only a warning, you can ignore it.</p> <br /><p><strong> If you know a better solution on this issue, please post here.</strong></p><p> All files are in place))))</p><div class="codebox"><pre><code># cd /boot</code></pre></div><p>Generate grub.cfg<br /></p><div class="codebox"><pre><code># grub-mkconfig -o /boot/grub/grub.cfg</code></pre></div><br /><div class="codebox"><pre><code># nano /boot/grub/grub.cfg  

You will find these two lines in the configuration file 
linux /vmlinuz-linux-libre-lts root=/dev/mapper/matrix-root rw quiet


This is what they should look like after correction:
linux /vmlinuz-linux-libre-lts root=/dev/mapper/matrix-root cryptdevice=/dev/sdb1:matrix rw quiet</code></pre></div><p><strong>Save.</strong></p><br /><p>Add a user<br /></p><div class="codebox"><pre><code># useradd -m -g users -G wheel -s /bin/bash jim
# passwd jim</code></pre></div><br /><p>Unmount all partition and reboot </p><div class="codebox"><pre><code># exit

# umount -R /mnt

# lvchange -an /dev/matrix/root
# lvchange -an /dev/matrix/home

# cryptsetup close lvm

# openrc-shutdown -p now 

or

# poweroff</code></pre></div><p>Insert your USB with GRUB. Turn on your PC, press <strong>ESC</strong>, you will see a menu in which you need to select <strong>“Payload [grub2]”</strong> click on this number!<br />Next, select <strong>“Search for GRUB configuration on external media [s]”</strong> and press enter.<br />You will see Hyperbola GNU/Linex-libre, Liux-libre-lts kernel, press enter and your system will boot.</p><p>You can remove your USB from GRUB. After re-enabling, your GRUB will be on the flash drive.</p><p>After this, you will be asked to enter your password for the encrypted volume!</p><div class="codebox"><pre><code>cat /proc/cmdline (check)</code></pre></div><p>Use T400, it is freer than T440P))</p>]]></content>
			<author>
				<name><![CDATA[jim]]></name>
			</author>
			<updated>2023-12-01T11:02:06Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=6808#p6808</id>
		</entry>
</feed>
