You are not logged in.

#1 2023-07-16 23:22:00

stiltedkeys
Member
Registered: 2023-07-15
Posts: 2

[SOLVED] installing essential packages | linux.preset missing

I was able to fix my issue by running back through the guide and re-syncing packages after running pacstrap.
thanks to Scimmia and Trilby I found out i was not only looking in the wrong place, but could've also been mistyping the file i was searching for in the first place.
Thank you!

Hello!
I have been following the guide to install arch on an ideapad 3 cb 11igl05

I used rufus to put the linux iso is on a usb drive

DD Image mode and GPT partition scheme

I used the mrchromebox Firmware Utility Script and selected

UEFI (Full ROM) Firmware


formated the chromebook drive with three partitions for root EFI and a swap partition
here is the output for when I enter

fdisk -l
Disk /dev/mmcblk0: 58.24 GiB, 62537072640 bytes, 122142720 sectors          
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 9EECEF81-F2EC-4DAB-A2BB-F243DDE69EEB

Device              Start         End    Sectors  Size  Type
/dev/mmcblk0p1       2048      614400     612353  299M  EFI System
/dev/mmcblk0p2     616448     1665024    1048577  512M  Linux swap
/dev/mmcblk0p3    1667072   122140671  120473600 57.4G  Linux root (x86-64)

after going through the arch install guide I have run into an issue while running

pacstrap -K /mnt base linux linux-firmware
==> Creating install root at /mnt
==> Installing packages to /mnt
:: Synchronizing package databases...
core is up to date
extra is up to date
warning: linux-6.4.3.arch1-2 is up to date -- reinstalling
warning: linux-firmware-20230625.ee91452d-4 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (2) linux-6.4.3.arch1-2  linux-firmware-20230625.ee91452d-4

Total Installed Size: 298.84 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring
(2/2) checking package integrity
(2/2) loading package files
(2/2) checking for file conflicts
(2/2) checking available disk space
:: Processing package changes...
(1/2) reinstalling linux
(2/2) reinstalling linux-firmware
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Updating linux initcpios...
==> WARNING: Present file '/etc/mkinitcpio.d/linux.present' is empty or does not contain any presets.
pacstrap -K /mnt linux-firmware  4.61s user 2.51s system 103% cpu 6.900 total

I can confirm this by using

rm /etc/mkinitcpio.d/linux.present

and receive "No such file or directory"

I found this strange.
I am also unable to use pacman while in chroot, as it isn't a recognized command and i wonder, is this related?
I don't know how critical this warning message is, but it seems like I shouldn't proceed until it's resolved.


Thank you for your time.

Last edited by stiltedkeys (2023-07-17 18:17:45)

Offline

#2 2023-07-17 02:41:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] installing essential packages | linux.preset missing

You need to be checking inside the new system, ie /mnt/etc/mkinitcpio.d/linux.preset. It's probably there but empty, that can happen if something goes wrong with the script that generates it. Delete it and reinstall the kernel again.

Offline

#3 2023-07-17 03:26:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,466
Website

Re: [SOLVED] installing essential packages | linux.preset missing

Did you type that output by hand?  Otherwise how is the same apparent typo in four places?  The file in question should be linux.preset not linux.present.

Last edited by Trilby (2023-07-17 03:28:10)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2023-07-17 18:13:03

stiltedkeys
Member
Registered: 2023-07-15
Posts: 2

Re: [SOLVED] installing essential packages | linux.preset missing

Scimmia wrote:

You need to be checking inside the new system, ie /mnt/etc/mkinitcpio.d/linux.preset. It's probably there but empty, that can happen if something goes wrong with the script that generates it. Delete it and reinstall the kernel again.

Thank you! I didn't realize it was inside the /mnt/

Trilby wrote:

Did you type that output by hand?  Otherwise how is the same apparent typo in four places?  The file in question should be linux.preset not linux.present.

yes i did, it was a typo. Thank you! i probably tried looking for that file as well, so that could've been why i couldn't find it.

This morning i looked at it again and ran the install guide backwards until formatting drives then when through the process again.
after running pacstrap and re-syncing the packages, everything worked. I was able to finish the guide and am able to boot into arch now

thank you both!

Offline

Board footer

Powered by FluxBB