You are not logged in.

#1 2022-01-25 15:10:22

nahush
Member
Registered: 2019-01-18
Posts: 170

[SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

hello for discussion https://bbs.archlinux.org/viewtopic.php?id=273358, i wanted to install linux-lts kernel to check if problem persists.My system has UEFI enabled , how should i proceed about doing above. The folders which i have in my /boot are

[musicarch@musicArch ~]$ cd /boot
[musicarch@musicArch boot]$ ls
EFI           grub                              initramfs-linux-lts.img
FSCK0000.REC  initramfs-linux-fallback.img      intel-ucode.img
FSCK0001.REC  initramfs-linux.img               vmlinuz-linux
FSCK0002.REC  initramfs-linux-lts-fallback.img  vmlinuz-linux-lts
[musicarch@musicArch boot]$ cd EFI/
[musicarch@musicArch EFI]$ ls
Grub
[musicarch@musicArch EFI]$ cd Grub/
[musicarch@musicArch Grub]$ ls
grubx64.efi
[musicarch@musicArch Grub]$ 

as i try to load lts kernel , with installing only lts and lts & headers packages my boot get stuck at

loading Linux linux-lts....
loading initial ramdisk..

thank you

Last edited by nahush (2022-02-18 04:25:59)

Offline

#2 2022-01-25 15:13:12

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

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

See the grub wiki page. The file you mentioned is for systemd-boot.

Offline

#3 2022-01-25 15:40:15

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

Scimmia wrote:

See the grub wiki page. The file you mentioned is for systemd-boot.


thank you ,
i did read that but i have problem understanding that all the files of current kernel are in EFI folder and also lts files are there , should i make two different folder for both of them and mkconfig the grub .

please explain .

Offline

#4 2022-01-25 23:07:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,790

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

The kernel seems to load and tries to load the initramfs

df -h

Do you get more output when editing the kernel commandline in grub and replace the "quiet" parameter w/ "nomodeset"?

Offline

#5 2022-01-28 13:31:11

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

seth wrote:

The kernel seems to load and tries to load the initramfs

df -h

Do you get more output when editing the kernel commandline in grub and replace the "quiet" parameter w/ "nomodeset"?

.i am not able to boot from lts kernel as i dont have any systemd configured to it cause i should add a configuration file as per i read. there is value parameter for the root drive of the system with "blkid" with arguments which makes system identify the drive. i wanted to know how should i manage that to do.

starting from grub i have 3 options 1.Arch linux  2advance option for arch linux 3.uefi setting . if i select advance and then select the lts kernel i dont get anything other than two lines i mentioned in my first post.

df -h output

Filesystem      Size  Used Avail Use% Mounted on
dev              16G     0   16G   0% /dev
run              16G  1.3M   16G   1% /run
/dev/sda2        49G   45G  2.0G  96% /
tmpfs            16G     0   16G   0% /dev/shm
tmpfs            16G  8.0K   16G   1% /tmp
/dev/sda1       500M  129M  371M  26% /boot
/dev/sda4       398G  358G   20G  95% /home
tmpfs           3.2G   44K  3.2G   1% /run/user/1000

Last edited by nahush (2022-01-28 13:32:48)

Offline

#6 2022-01-28 14:25:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,790

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

WHat do you want w/ systemd? The /boot partition looks like you're using grub??

Edit: also the lts kernel *is* loaded, the boot just stalls (?) there so remove the "quit" paramter and add "nomodeset" instead.

Last edited by seth (2022-01-28 14:26:31)

Offline

#7 2022-01-28 16:02:51

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

seth wrote:

WHat do you want w/ systemd? The /boot partition looks like you're using grub??

Edit: also the lts kernel *is* loaded, the boot just stalls (?) there so remove the "quit" paramter and add "nomodeset" instead.


ok now i got , what were you saying .but i dont know from where should i change  "quit" parameter to "nomodeset"

Offline

#8 2022-01-28 16:03:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,790

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

Offline

#9 2022-01-29 13:17:59

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

seth wrote:

WHat do you want w/ systemd? The /boot partition looks like you're using grub??

Edit: also the lts kernel *is* loaded, the boot just stalls (?) there so remove the "quit" paramter and add "nomodeset" instead.


as Article suggested i did go in grub and edited linux-lts with "e". i removed quite and typed nomodeset. after editing i press ctrl + x to boot . next screen i have is

Loding Linux linux-lts...
Loading initial ramdisk ...
error : file '/initramfs-linux-lts.img' not found

press any key to continue.....

press key doesnt change anything, have to poweroff the machine and restart again.

Offline

#10 2022-01-29 13:35:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,790

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

lsblk -f

Offline

#11 2022-02-02 11:02:14

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

seth wrote:
lsblk -f

output

[musicarch@musicArch ~]$ lsblk -f
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                         
├─sda1
│    vfat   FAT32       BF0C-E5B4                             371.1M    26% /boot
├─sda2
│    ext4   1.0         2b8d693d-b2b2-4332-9c5c-298d2abd960f  335.2M    94% /
├─sda3
│    swap   1           afc7ed79-625e-44db-bc46-8002056bc4af                [SWAP]
└─sda4
     ext4   1.0         aba86f86-81df-4a07-a2b4-44e8200d08f4   12.7G    92% /home
sr0                                                                         
[musicarch@musicArch ~]$ 

Offline

#12 2022-02-02 12:14:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,790

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

ls -lh /boot
sudo umount /boot
ls -lh /boot

Offline

#13 2022-02-09 12:32:43

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

seth wrote:
ls -lh /boot
sudo umount /boot
ls -lh /boot

output

[musicarch@musicArch ~]$ ls -lh /boot
total 116M
drwxr-xr-x 3 root root 4.0K Dec 15  2020 EFI
-rwxr-xr-x 1 root root 9.9M Jan  1  1980 FSCK0000.REC
-rwxr-xr-x 1 root root 8.6M Jan  1  1980 FSCK0001.REC
-rwxr-xr-x 1 root root  32M Jan  1  1980 FSCK0002.REC
drwxr-xr-x 6 root root 4.0K Jan 25 18:22 grub
-rwxr-xr-x 1 root root  33M Feb  9 14:46 initramfs-linux-fallback.img
-rwxr-xr-x 1 root root 8.6M Feb  9 14:46 initramfs-linux.img
-rwxr-xr-x 1 root root 4.6M Jun  9  2021 intel-ucode.img
-rwxr-xr-x 1 root root  11M Feb  8 15:24 vmlinuz-linux
-rwxr-xr-x 1 root root 9.8M Feb  9 14:46 vmlinuz-linux-lts
[musicarch@musicArch ~]$ sudo umount /boot
[sudo] password for musicarch: 
[musicarch@musicArch ~]$ ls -lh /boot
total 0

Offline

#14 2022-02-09 15:30:42

GrimBandito
Member
Registered: 2016-12-04
Posts: 48

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

@nahush, I'm going to stick my neck out here and suggest that you need to create the "initramfs-linux-lts" files i.e. the inital ramdisk that is used to get the kernel up and running. From the image you pasted above you already (and correctly) have the "linux" kernal and matching ramdisk installed and also the "linux-lts" kernel. Just are missing the ramdisk for lts kernel.

I would suggest you run the following to build the initalramdisk for the LTS-Kernel:-

sudo mkinitcpio -p linux-lts

Then rebuild your grub menu entrys:-

sudo grub-mkconfig -o /boot/grub/grub.cfg

I'm pretty confident that now you should be able to reboot into the Linux-LTS kernel without any hitches.

Good luck!

Last edited by GrimBandito (2022-02-09 15:55:11)

Offline

#15 2022-02-14 11:06:16

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

GrimBandito wrote:

@nahush, I'm going to stick my neck out here and suggest that you need to create the "initramfs-linux-lts" files i.e. the inital ramdisk that is used to get the kernel up and running. From the image you pasted above you already (and correctly) have the "linux" kernal and matching ramdisk installed and also the "linux-lts" kernel. Just are missing the ramdisk for lts kernel.

I would suggest you run the following to build the initalramdisk for the LTS-Kernel:-

sudo mkinitcpio -p linux-lts

Then rebuild your grub menu entrys:-

sudo grub-mkconfig -o /boot/grub/grub.cfg

I'm pretty confident that now you should be able to reboot into the Linux-LTS kernel without any hitches.

Good luck!

I did  try your suggestions the result is

[musicarch@musicArch ~]$ sudo mkinitcpio -p linux-lts
[sudo] password for musicarch: 
==> WARNING: Preset file `/etc/mkinitcpio.d/linux-lts.preset' is empty or does not contain any presets.

after this i tried to boot from lts kernal but still nothing , after booting from it

Loading Linux linux-lts
Loading initial ramdisk

grub has changed

Arch Linux,with Linux linux-lts
Arch Linux,with Linux linux-lts (fallback intramfs)
Arch Linux ,with Linux linux

Offline

#16 2022-02-14 11:53:05

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,206

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

You need to fix the preset warning, it "should" be fixed by explicitly reinstalling the linux-lts package, or at the minimum a .pacnew file allocated. Check your /etc/mkinitcpio.d/ directory.

FWIW since this might well be related to the xfce problem and this and since you have a history of having a broken drive.

sudo smartctl -a /dev/sda #Or whatever /dev/sdX your main drive is

might be useful to determine whether you should even bother with this in the first place.

Last edited by V1del (2022-02-14 11:55:10)

Offline

#17 2022-02-14 16:42:46

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

You need to fix the preset warning, it "should" be fixed by explicitly reinstalling the linux-lts package, or at the minimum a .pacnew file allocated. Check your /etc/mkinitcpio.d/ directory.

output : reinstalling linux-lts

[musicarch@musicArch ~]$ sudo pacman -S linux-lts
warning: linux-lts-5.15.22-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-lts-5.15.22-1

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

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
==> dkms remove --no-depmod nvidia/470.103.01 -k 5.15.22-1-lts
==> dkms remove --no-depmod v4l2loopback/0.12.5 -k 5.15.22-1-lts
Deprecated feature: REMAKE_INITRD
:: Processing package changes...
(1/1) reinstalling linux-lts                       [######################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
==> dkms install --no-depmod v4l2loopback/0.12.5 -k 5.15.22-1-lts
Deprecated feature: REMAKE_INITRD
==> dkms install --no-depmod nvidia/470.103.01 -k 5.15.22-1-lts
==> depmod 5.15.22-1-lts
(4/4) Updating linux initcpios...
==> WARNING: Preset file `/etc/mkinitcpio.d/linux-lts.preset' is empty or does not contain any presets.

output :Check your /etc/mkinitcpio.d/ directory.

[musicarch@musicArch mkinitcpio.d]$ ls
linux-lts.preset  linux.preset

linux-lts.preset file is still empty , no content in it.


i have change the whole machine from last one ,its thinkpad  w530 now .
output : sudo smartctl -a /dev/sda 

[musicarch@musicArch ~]$ sudo pacman -S smartmontools
resolving dependencies...
looking for conflicting packages...

Packages (1) smartmontools-7.2-1

Total Installed Size:  2.11 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) installing smartmontools                     [######################] 100%
Optional dependencies for smartmontools
    s-nail: to get mail alerts to work
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
[musicarch@musicArch ~]$ sudo smartctl -a /dev/sda 
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.16.8-arch1-1] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi/HGST Travelstar Z7K500
Device Model:     HGST HTS725050A7E630
Serial Number:    TF755AWHJT9ZXM
LU WWN Device Id: 5 000cca 77fe73d71
Firmware Version: GH2ZB550
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 6
SATA Version is:  SATA 2.6, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Mon Feb 14 21:52:35 2022 IST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)	Offline data collection activity
					was never started.
					Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(   45) seconds.
Offline data collection
capabilities: 			 (0x5b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					No Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 (  90) minutes.
SCT capabilities: 	       (0x003d)	SCT Status supported.
					SCT Error Recovery Control supported.
					SCT Feature Control supported.
					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   062    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   040    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0007   240   240   033    Pre-fail  Always       -       1
  4 Start_Stop_Count        0x0012   093   093   000    Old_age   Always       -       11757
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   040    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0012   070   070   000    Old_age   Always       -       13288
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   098   098   000    Old_age   Always       -       4662
191 G-Sense_Error_Rate      0x000a   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   099   099   000    Old_age   Always       -       203
193 Load_Cycle_Count        0x0012   051   051   000    Old_age   Always       -       496369
194 Temperature_Celsius     0x0002   157   157   000    Old_age   Always       -       38 (Min/Max 18/52)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     13288         -
# 2  Vendor (0x50)       Completed without error       00%         0         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Last edited by nahush (2022-02-14 16:44:06)

Offline

#18 2022-02-14 16:49:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,206

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

Good the drive is healthy, as for the preset file, then remove it and reinstall the linux-lts package after doing so or just create it yourself, you can just copy the working linux example and adjust it relevantly

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux-lts"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux-lts.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-linux-fallback-lts.img"
fallback_options="-S autodetect"

might even want to omit and remove the "fallback" entry from the PRESETS line to save space on the target /boot partition.

Last edited by V1del (2022-02-14 16:50:30)

Offline

#19 2022-02-15 12:48:21

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

V1del wrote:

Good the drive is healthy, as for the preset file, then remove it and reinstall the linux-lts package after doing so or just create it yourself, you can just copy the working linux example and adjust it relevantly

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux-lts"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux-lts.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-linux-fallback-lts.img"
fallback_options="-S autodetect"

might even want to omit and remove the "fallback" entry from the PRESETS line to save space on the target /boot partition.

i did make changes as you suggested , still no change only showing two lines then nothing.i did saw your comment on a post where person asked about having the /boot/loader/entries/arch.conf file . and you did tell him to have that file.but i do not have that file. or any file for arch-lts.conf. can it be the problem .please tell.

Offline

#20 2022-02-15 13:06:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,206

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

No, as established multiple times in this thread you are running GRUB and not systemd-boot so loader, entries or arch-lts.conf is completely irrelevant. Your GRUB is configured correctly, you are simply missing /boot/initramfs-linux-lts.img which will be created with a proper preset file. After creating the preset file did you rerun mkinitcpio -P ? Post exactly what you did and the exact name and path and contents  of the file you created after following my post.

IT sounds weird that you are this confused about which bootloader you are running, this is a conscious decision you'd do and makes me feel like you followed a third party tutorial on how to install Arch without understanding the contents, this isn't really a good way to use Arch and you'll just stumble from one "unresolvable" issue to the next.

Last edited by V1del (2022-02-15 13:11:47)

Offline

#21 2022-02-17 10:34:01

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

V1del wrote:

No, as established multiple times in this thread you are running GRUB and not systemd-boot so loader, entries or arch-lts.conf is completely irrelevant. Your GRUB is configured correctly, you are simply missing /boot/initramfs-linux-lts.img which will be created with a proper preset file. After creating the preset file did you rerun mkinitcpio -P ? Post exactly what you did and the exact name and path and contents  of the file you created after following my post.

IT sounds weird that you are this confused about which bootloader you are running, this is a conscious decision you'd do and makes me feel like you followed a third party tutorial on how to install Arch without understanding the contents, this isn't really a good way to use Arch and you'll just stumble from one "unresolvable" issue to the next.

ok , sorry for my confusion , i did consciously made the decision of using grub , but when i was researching for answer on this i stumbled upon your post regarding that , i thought i may have misunderstood the things at start , i will have a good look on this  will educate myself.

as for my question, first i deleted linux-lts.preset file. then i reinstalled linux-lts kernel, generated grub configuration , and rebooted computer. After reading the post , again made the changes in same order, but after genrating grub i regenerated preset file with -p but i got an error mentioned below. as with all the thing i did in terminal .

[musicarch@musicArch Desktop]$ sudo pacman -S linux-lts
warning: linux-lts-5.15.24-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux-lts-5.15.24-1

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

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
Deprecated feature: REMAKE_INITRD
Deprecated feature: REMAKE_INITRD
==> dkms remove --no-depmod nvidia/470.103.01 -k 5.15.24-1-lts
==> dkms remove --no-depmod v4l2loopback/0.12.5 -k 5.15.24-1-lts
Deprecated feature: REMAKE_INITRD
:: Processing package changes...
(1/1) reinstalling linux-lts                       [######################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
==> dkms install --no-depmod nvidia/470.103.01 -k 5.15.24-1-lts
==> dkms install --no-depmod v4l2loopback/0.12.5 -k 5.15.24-1-lts
Deprecated feature: REMAKE_INITRD
==> depmod 5.15.24-1-lts
(4/4) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 5.15.24-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
==> Starting build: 5.15.24-1-lts
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful
[musicarch@musicArch Desktop]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
[sudo] password for musicarch: 
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux-lts
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-lts-fallback.img
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img 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
[musicarch@musicArch Desktop]$ mkinitcpio -p
mkinitcpio: option '-p' requires an argument
[musicarch@musicArch Desktop]$ mkinitcpio -p linux-lts
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> ERROR: Unable to write to /boot/initramfs-linux-lts.img
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
==> ERROR: Unable to write to /boot/initramfs-linux-lts-fallback.img
[musicarch@musicArch Desktop]$ 

as for my linux-lts.preset file , ididnt make it , it was self generated after installing linux-lts package.

 mkinitcpio preset file for the 'linux-lts' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux-lts"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux-lts.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-linux-lts-fallback.img"
fallback_options="-S autodetect"

Offline

#22 2022-02-17 10:55:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,206

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

Now you actually have a initramfs file (the mkinitcpio doesn't work because you're not running it as root, but it doesn't matter the hook on post-install ran correctly). You should be able to boot into the LTS kernel or get a different error message.

Offline

#23 2022-02-18 04:24:58

nahush
Member
Registered: 2019-01-18
Posts: 170

Re: [SOLVED]How to add /boot/entries/arch-lts.conf file as i am using UEFI

V1del wrote:

Now you actually have a initramfs file (the mkinitcpio doesn't work because you're not running it as root, but it doesn't matter the hook on post-install ran correctly). You should be able to boot into the LTS kernel or get a different error message.

thank you , it did run well as started system today.

V1del,seth wrote:

Thank you for all you support and knowledge , will try to improve my knowledge as well.

Offline

Board footer

Powered by FluxBB