LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-26-2017, 12:23 AM   #1
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 260
Blog Entries: 2

Rep: Reputation: 49
Customize Live CD: SquashFS optimal compression


I am trying to make an Ubuntu installation medium with customized live environment. I am following this recipe: https://help.ubuntu.com/community/LiveCDCustomization
Then there's this line:
Quote:
For a highest possible compression at the cost of compression time, you may use the xz method and is better exclude the edit/boot directory altogether:

sudo mksquashfs edit extract-cd/casper/filesystem.squashfs -comp xz -e edit/boot
The "edit" directory contains the file system extracted from the original squashfs.
I am not worried about the xz, but the exclusion of /boot. I'm not too familiar with all this matter. So, I wonder: do I need to do something else with /boot, or does this merely store /boot uncompressed in the squashfs file?
 
Old 06-26-2017, 08:03 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,959

Rep: Reputation: 3129Reputation: 3129Reputation: 3129Reputation: 3129Reputation: 3129Reputation: 3129Reputation: 3129Reputation: 3129Reputation: 3129Reputation: 3129Reputation: 3129
You should make the new iso as the original was. If /boot was not inside the squash file then keep it outside.

I don't have it in front of me but I'll guess it is outside.

Also not too sure I get what they are saying. Above that has references to changing the kernel and in such the phrase edit boot. I get the feeling that part may be wrong but I'd have to try it. I've worked on other minimal distro's where I'd squash it back and forth but never changed the /boot stuff.

Last edited by jefro; 06-26-2017 at 08:07 PM.
 
Old 07-05-2017, 11:41 PM   #3
Weapon S
Member
 
Registered: May 2011
Location: Netherlands
Distribution: Debian, Archlinux
Posts: 260

Original Poster
Blog Entries: 2

Rep: Reputation: 49
This page says it more clearly: https://help.ubuntu.com/community/Li...ionFromScratch
Since the actual files used for boot are outside of the squashfs, the only purpose of the /boot directory inside the squashfs is providing files, if you choose to install that filesystem to a permanent location. (I am not sure if the Ubuntu installer actually uses files from that filesystem.)
 
  


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
Problem initializing GUI with Bitdefender live RescueCD (Invalid loop location: /rescue/livecd.squashfs) iamrahul Linux - Laptop and Netbook 4 06-15-2016 06:37 AM
Customise a live boot linux ISO - editing initrd (squashfs) TheGreyGhost Linux - Newbie 11 08-15-2014 03:38 PM
[SOLVED] Live CD not Detected after modification to squashfs rrrssssss Linux - General 3 12-07-2010 09:25 AM
Live CD not proceeding to second stage of boot after squashfs image editing cyber_apostle Programming 0 11-13-2009 02:34 AM
Slax with SquashFS-4 new compression algorithm and layered compression ratios? lincaptainhenryjbrown Linux - Software 2 06-19-2009 05:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration