LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-11-2018, 10:27 PM   #1
cthulhu_called
LQ Newbie
 
Registered: Aug 2018
Posts: 2

Rep: Reputation: Disabled
Question turning PXE server installation image into a USB disk installer


Hello All,

I made this post a few minutes earlier, but cannot find it anywhere on this subforum?

On to my question , prefaced by a description of my setup:

I have a deployment server set up using PXE to netboot multiple different linux installation images. I use preseed and kickstart files to customize the installation of what is installed on the clients. I also have a couple of images which were customized by chrooting into squashfs and using apt to install certain software.

My question is this:

Is it at all possible to add a PXE menu entry that will create a USB installer of the customized images so that they can be used in the field?

My thinking is that I will have to make an ISO installer of the finished product, boot into a minimal Linux environment , pull the ISO from the server and dd it to USB stick.

I'm trying to make this as simple as possible as the people imaging the clients are not trained, so having an entry on the PXE menu that says "Make Install Media of <distro X>" is all that they would have to select after inserting an appropriately sized USB stick into the machine that gets netbooted.

I would really like to avoid going the hosted ISO file route and hope there's some way around it. I know how to create an ISO with custom preseed / kickstart files but for them to work as intended I need to use mini.iso versions of ubuntu (for example) for all of the preseed rules to work. This also means that the network gets hammered with repository traffic and tends to take longer to install than a USB installer w/ most packages already on the disk.

Please feel free to post any and all info in regards to this as I admit I have a few knowledge gaps when it comes to some of the fine grained details of the technologies I imagine will be involved in this task.

Thanks!

Last edited by cthulhu_called; 08-11-2018 at 10:30 PM. Reason: word choice
 
Old 08-12-2018, 03:46 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
Some distros allow you to remaster their live .iso files, put a remastered iso hybrid .iso file on your server that they could download onto their pendrive, maybe try that(?).

My distro is one that allows you to do this, AntiX, (& MX Linux too).
http://antix.mepis.org/index.php?title=Main_Page
 
Old 08-12-2018, 03:26 PM   #3
cthulhu_called
LQ Newbie
 
Registered: Aug 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
Some distros allow you to remaster their live .iso files, put a remastered iso hybrid .iso file on your server that they could download onto their pendrive, maybe try that(?).

My distro is one that allows you to do this, AntiX, (& MX Linux too).
http://antix.mepis.org/index.php?title=Main_Page
Like I mentioned in the post I'd rather not have to host an ISO on the server. Space is at a premium on this specific machine so it would be the last option for me.
 
Old 08-13-2018, 12:56 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
A pxe entry is just a command. So asking if you can create a command that will master a live usb from a set of files while in a pxe boot or keepmem or whatever may be possible but would seem to be much more trouble. Would be easier to make a minimal bootable image of some mastering way or just make the usb image downloadable.
 
Old 08-14-2018, 07:06 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,478

Rep: Reputation: Disabled
If you already have your .iso file, just turn an .iso into a usable USB image, run isohybrid on your iso file, then you can use dd to put it on your pendrive.
 
  


Reply



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
Can't create disk image on FAT32 formatted USB using Mac Disk Utility name_Christian Linux - Newbie 9 05-24-2018 08:06 AM
Installation saying failed to find an installer ISO image raptor34 Debian 2 08-28-2010 12:08 PM
Can I use G4L to image a disk with an image from a USB dirve? AKLinuxNovice Linux - Newbie 2 02-03-2010 07:40 AM
Trying to create PXE server and can't mount initrd image Nylex Slackware 6 07-08-2007 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:04 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