Re: Dump commands

Pierre Labastie ([email protected] via lfs-support Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.support
Message-ID <[email protected]>
On Fri, 2026-08-14 at 18:12 -0400, Pocket wrote:
> 
> 
> On 8/13/26 11:45, Pierre Labastie ([email protected] via 
> lfs-support Mailing List) wrote:
> > On Thu, 2026-08-13 at 11:23 -0400, Pocket wrote:
> > > 
> > > 
> > > On 8/13/26 11:17, Pierre Labastie ([email protected] via
> > > lfs-support Mailing List) wrote:
> > > > On Wed, 2026-08-12 at 15:51 -0400, Pocket wrote:
> > > > > 
> > > > > FYI
> > > > > 
> > > > > When building the book and also dumping the commands
> > > > > in some of the scripts the tailing \ is not there
> > > > > 
> > > > > For example....
> > > > > 
> > > > >    From my script
> > > > > make BASEDIR="$basedir" DUMPDIR="$dumpdir"
> > > > > NOCHUNKS_OUTPUT="$nochunks"
> > > > > book dump-commands nochunks
> > > > > 
> > > > > 027-addinguser
> > > > > 
> > > > > groupadd lfs
> > > > > 
> > > > > useradd -s /bin/bash -g lfs
> > > > >     -m -k /dev/null lfs
> > > > > 
> > > > > 
> > > > > passwd lfs
> > > > > 
> > > > > 
> > > > > chown -v lfs
> > > > >     $LFS/{usr{,/*},var,etc,tools}
> > > > > case $(uname -m) in
> > > > >      x86_64) chown -v lfs
> > > > >     $LFS/lib64 ;;
> > > > > esac
> > > > > 
> > > > > su - lfs
> > > > > 
> > > > > Not a huge deal as I just use sed to fix it before sourcing
> > > > > the
> > > > > script
> > > > 
> > > > Could you try commit 8cc9d2a18? It seems to fix things for me
> > > > 
> > > > Pierre
> > > > 
> > > > 
> > > 
> > > I am in the middle of a build right now, so I would like to wait
> > > until
> > > it finished.   Probably be a few days before I can try that
> > > 
> > 
> > Guess it is not a problem: the bug has been there during two years.
> > Confirmation can wait a few days...
> > 
> > Pierre
> > 
> > 
> 
> Ok did a git pull and remade the book
> 
> 027-addinguser
> 
> groupadd lfs
> 
> useradd -s /bin/bash -g lfs
>   -m -k /dev/null lfs
> 
> 
> passwd lfs
> 
> 
> chown -v lfs
>   $LFS/{usr{,/*},var,etc,tools}
> case $(uname -m) in
>    x86_64) chown -v lfs
>   $LFS/lib64 ;;
> esac
> 
> su - lfs
> 
> is now
> groupadd lfs
> useradd -s /bin/bash -g lfs -m -k /dev/null lfs
> 
> passwd lfs
> 
> chown -v lfs $LFS/{usr{,/*},var,etc,tools}
> case $(uname -m) in
>    x86_64) chown -v lfs $LFS/lib64 ;;
> esac
> 
> su - lfs
> 
> 
> 059-changingowner
> 
> chown --from lfs
>   -R root:root $LFS/{usr,var,etc,tools}
> case $(uname -m) in
>    x86_64) chown --from lfs
>   -R root:root $LFS/lib64 ;;
> esac
> 
> 
> is now
> 
> chown --from lfs -R root:root $LFS/{usr,var,etc,tools}
> case $(uname -m) in
>    x86_64) chown --from lfs -R root:root $LFS/lib64 ;;
> esac
> 
> 
> So it looks like your changes are good.
> 
> I looked at the other scripts and they don't look like they were
> affected.
> 
> I will know for sure when I build my next release.
> That will be a bit into the future as I need to create and image for
> the 
> version I just completed, built on a raspberry pi 5 and boot and test
> it 
> on a raspberry pi 4.
> 
> You did good!

Thanks a lot for report and testing!

Pierre

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-support
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.