LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-09-2021, 09:37 AM   #1
midnightoil
LQ Newbie
 
Registered: Jun 2015
Posts: 14

Rep: Reputation: Disabled
How to update initramfs from kickstart when installing to eMMC disk


I'm trying to install Centos 8 to an embedded computer fitted with onboard eMMC storage. The installation completes successfully but the system does not boot.

After reset, the grub2 boot menu is displayed showing the installed kernels but the boot process goes no further.

A few articles mention that Centos/anaconda does not include the proper drivers for accessing eMMC devices in the newly created initramfs file on the target machine:

Which says you need to add some additional drivers to the initramfs files:

Code:
dracut -f --add-drivers " mmc_core mmc_block sdhci sdhci-pci "
I tried that by switching to a different console after a normal installation completed but dracut failed with:

Code:
dracut: Cannot find /usr/lib/dracut/dracut-init.sh.
This Red Hat article supposedly explains how to get around that problem and update the initramfs but I cannot access.

Anyone know how I can get the correct drivers into the initramfs during an automated kickstart installation?
 
Old 10-05-2021, 01:39 PM   #2
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,179

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
You could add that command to the post-install instructions in your kickstaart script.
 
Old 10-05-2021, 06:39 PM   #3
midnightoil
LQ Newbie
 
Registered: Jun 2015
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by uteck View Post
You could add that command to the post-install instructions in your kickstaart script.
Thanks, I can try that. But as I understand, the %post section will operate with the same set of libs, bins and environment as switching to another console. Let's see.
 
Old 10-06-2021, 09:09 AM   #4
uteck
Senior Member
 
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Ubuntu based stuff for the most part
Posts: 1,179

Rep: Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501Reputation: 501
If that doesn't work, then try these steps to add to the post-install section to run the command after it reboots.
https://bitraboy.wordpress.com/2018/...t-centos-rhel/

Oops, never mind. Forgot the system is not booting, but I will leave the link here for future reference.

Found better info to run scripts outside the chroot install environment:
https://serverfault.com/questions/97...ironment-and-t

Last edited by uteck; 10-06-2021 at 09:16 AM. Reason: Oops
 
  


Reply

Tags
centos8, emmc, initramfs, kickstart



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing slackware64 current on eMMC. stf92 Slackware 12 11-18-2020 11:13 AM
Acer Aspire One Cloudbook 14 (AO1-431-C8G8) with eMMC (32GB): Is the eMMC replaceable? stf92 Linux - Hardware 2 08-19-2020 12:43 PM
[SOLVED] Installing to eMMC target partitions Pithium Slackware - Installation 3 03-17-2020 05:50 PM
Slackware -current installed in an eMMC drive - which are the best ways and your recommendations for avoiding the wearing of eMMC? ZhaoLin1457 Slackware 9 03-11-2020 03:50 AM
Ubuntu: 6.10: Too many "update-initramfs" lines in update tarobs Ubuntu 5 02-03-2007 07:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration