On 09/17/2015 04:19 PM, Ken Moffat wrote:
On Thu, Sep 17, 2015 at 12:51:36PM -0500, rhubarbpie...@gmail.com wrote:
I run simple scripts when building LFS that sound a beep to draw my
attention at completion or errors.  Unfortunately, alsa interrupts echo -e
"\a" so I must disable alsa on my host.  That works, but there's probably a
better way so I don't lose sound while building LFS.  How can I execute
"echo -e "\a" with alsa enabled?

I've tried snd-pcsp, snd_dummy, and a beep utility without success. I'm
probably missing something simple.  How can I sound a beep when building LFS
with alsa enabled?

Playing a sound file with mpg123 would be an acceptable alternative, which I
do when building BLFS.  But how when I'm building LFS?  I've tried linking
host programs with no success.

I will be surprised if there is a clean way to do this in chroot.
The whole purpose of chroot in LFS is to isolate you from the host.

Google has nothing that looks relevant to a _build_ in chroot.  I
tried cat'ing a file to the play (?) devices in /dev/snd while not
in chroot, but I just get
cat: write error: File descriptor in bad state

Have you thought about using a script above the individual package
scripts, to run all of them, or at least a batch of them [ if each
ends successfully ] ?  And at the end put out a message "Completed"
or "Failed".  That way you can run several scripts, and merely keep
an eye on the term where LFS is building, and overall CPU activity.

ĸen

Your chroot observation has been my experience. I've had the devil's own time with it. But maybe someone will have a thought.

I do run individual scripts from a master script. However, I really like having an audible notice; especial an audible notice of error.
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to