add big screen detection to init

This commit is contained in:
Tobias Powalowski 2023-02-14 20:29:32 +01:00
parent 13559736b9
commit 092011044b
3 changed files with 12 additions and 5 deletions

View file

@ -12,8 +12,9 @@ build() {
'/drivers/spi/' 'virtio'
map add_binary bash sh blkid mount switch_root bsdcpio mkfs.btrfs setfont \
/usr/lib/systemd/systemd-udevd udevadm systemd-tmpfiles kmod insmod modprobe \
gzip uname cat cp dmesg grep ln ls mv rm umount lsblk rmmod
add_file "/usr/share/kbd/consolefonts/ter-v16n.psf.gz" "/consolefont.psf.gz"
gzip uname cat cp dmesg grep ln ls mv rm umount lsblk rmmod cut sed find
add_file "/usr/share/kbd/consolefonts/ter-v16n.psf.gz" "/consolefont-16.psf.gz"
add_file "/usr/share/kbd/consolefonts/ter-v32n.psf.gz" "/consolefont-32.psf.gz"
map add_udev_rule '50-udev-default.rules' '60-persistent-storage.rules' \
'64-btrfs.rules' '80-drivers.rules'
map add_file '/usr/lib/udev/ata_id' '/usr/lib/udev/scsi_id'

View file

@ -31,7 +31,13 @@ udevadm info --cleanup-db
echo 1 > /proc/sys/kernel/sysrq
echo -e "\e[1mInitializing\e[m \e[36mArchboot\e[m \e[1m- Arch Linux Environment:\e[m"
# it needs one echo before, in order to reset the consolefont!
setfont consolefont.psf.gz -C /dev/console
FB_SIZE="$(cut -d 'x' -f 1 "$(find /sys -wholename '*fb0/modes')" | sed -e 's#.*:##g')"
if [[ "${FB_SIZE}" -gt '1900' ]]; then
SIZE="32"
else
SIZE="16"
fi
setfont consolefont-${SIZE}.psf.gz -C /dev/console
echo -e "\e[1mStep 1/4:\e[m Creating /dev/zram0 with zstd compression..."
modprobe zram &>/dev/null
modprobe zstd &>/dev/null

View file

@ -893,8 +893,8 @@ Some hardware does not like the <a href="https://wiki.archlinux.org/title/KMS" t
<strong>Any</strong> combinations of the following <a href="https://wiki.archlinux.org/title/Kernel_parameters" title="Kernel parameters"><strong>kernel parameters</strong></a> may be useful:<br><strong><code>noapic</code>, <code>nolapic</code>, <code>acpi=off</code>, <code>pci=routeirq</code>, <code>pci=nosmp</code> or <code>pci=nomsi</code></strong></p>
</ul>
<ul>
<li>Is it possible to <strong>unplugg</strong> the usb/cd medium?</li>
<li><strong>Yes</strong> you can unplug the used medium, with the first <strong>Welcome Archboot - Arch Linux</strong> message on <strong>systemd</strong> startup.
<li>Is it possible to <strong>remove</strong> the USB/CD medium?</li>
<li><strong>Yes</strong> you can remove the used medium, with the first <strong>Welcome Archboot - Arch Linux</strong> message on <strong>systemd</strong> startup.
</ul>
<ul>
<li><strong>Package</strong> XYZ is <strong>missing</strong> in archboot environment.</li>