LinuxQuestions.org
Visit Jeremy's Blog.
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 03-20-2009, 02:15 PM   #1
genghiskhano
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Rep: Reputation: 0
How do I inject drivers into a Linux image?


Hello,
I need to inject drivers into a linuxpe image, I've followed the instructions bellow:

Quote:
Resolution


1.This must be done from a Linux or similar operating system.


2.From Linux, map a drive to the ldmain share on the Core Server.

mount -t smbfs -o username=User1,password=P@sswd,workgroup=Domain //CoreServer/ldmain /mnt
3.Now change to the vboot directory

cd /mnt/landesk/vboot


4.Backup the current ldlinux.img.

cp ldlinux.img ldlinux.img.original
5.Copy ldlinux.img to the linux file system.

cp ldlinux.img /tmp
6.Change to the /tmp directory

cd /tmp
7.The ldlinux.img is actually gzipped. Unzip it:

mv ldlinux.img ldlinux.img.gz
gunzip ldlinux.img.gz

Note: This will extact the gzipped file and remove the .gz extension leaving the file named ldlinux.img.
8.Make a directory called /ldlinux and mount the image to it.

mkdir /ldlinux
mount -o loop ldlinux.img /ldlinux
9.Change to the /ldlinux directory.

cd /ldlinux


10.Make any changes to the image, including addition of drivers, addition of files, or modification of files. A Linux administrator may be required to perform these tasks.
11.Exit the ldlinux directory and go back to the /tmp directory.

cd /tmp
12.Unmount the image. Note: If you did not change to /tmp this command will fail.

umount /ldlinux
13.Zip the image.

gzip ldlinux.img

Note: This will add the .gz extension leaving the file named ldlinux.img.gz.
14.Rename the file to ldlinux.img.

mv ldlinux.img.gz ldlinux.img
15.Copy the newly modified image back to the core.

cp ldlinux.img /mnt/landesk/vboot/ldlinux.img
16.Deploy to a single PXE Representative and test. Only when it is tested to be working, should you then deploy to all PXE Representatives.


I don't know how to do step 10, not even the linux admins at my company know how to do it.

Please Help ...Thanks.
 
Old 03-21-2009, 03:53 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 25,828

Rep: Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761
Quote:
Originally Posted by genghiskhano View Post
Hello,
I need to inject drivers into a linuxpe image, I've followed the instructions bellow:

I don't know how to do step 10, not even the linux admins at my company know how to do it.

Please Help ...Thanks.
You've got the image mounted. Step 10 says to make your changes. So copy whatever file(s) you want into that mounted image, edit any files, change anything you want. Do it all in the /ldlinux directory that you have mounted. Then create the image by following the rest of the steps.

And if the Linux admins at your company couldn't tell you this...it's time to trade up.
 
Old 03-21-2009, 04:23 PM   #3
genghiskhano
LQ Newbie
 
Registered: Oct 2004
Posts: 5

Original Poster
Rep: Reputation: 0
DO you think I can install this image in an usb drive, boot from it , install the drivers and then create an image from it?
if so how do I go about it?
Sorry as you can see I new to linux.

Last edited by genghiskhano; 03-21-2009 at 04:27 PM.
 
Old 03-21-2009, 08:26 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 25,828

Rep: Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761Reputation: 7761
Quote:
Originally Posted by genghiskhano View Post
DO you think I can install this image in an usb drive, boot from it , install the drivers and then create an image from it?
if so how do I go about it?
Sorry as you can see I new to linux.
No, if you follow the instructions, you'll have the image MOUNTED in a directory, under a loop back device. You can't change the parts of a running system (with very few exceptions), without causing problems, anymore than you can pull the engine of your car apart, while you're driving.

You can put the image anywhere, whether you can boot from it or not is a different matter. Your system will have to support boot from USB for it to work. If you're following the instructions you provided, continue to do so. That'll leave you with a finished image afterwards.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help programming inject tcp/ip packet in C darkangel29 Programming 5 05-29-2009 05:53 AM
Inject/modify files in iso image on the fly brianmcgee Linux - Software 10 08-01-2008 02:08 AM
Solution to inject script to multiple servers?? cdestiny Linux - Server 3 07-23-2008 01:14 PM
qmail-inject problems iamnotherbert Linux - Networking 8 10-15-2004 11:57 AM
qmail-inject: trouble creating files in queue ashfaq Linux - Software 1 06-23-2004 07:53 AM

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

All times are GMT -5. The time now is 02:21 PM.

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