[K12OSN] Re: "umount: device is busy" error in ltsp-build-client

Danilo Câmara fcdanilo at gmail.com
Sat Apr 4 02:47:36 UTC 2009


I'm replying to myself to register a workaround about this post.

What I did was to proceed the installation as described in
https://fedorahosted.org/k12linux/wiki/InstallGuide but instead of
running "ltsp-build-client", I copied "/opt/ltsp" and
"/var/lib/tftpboot" from an system running "K12Linux Live
Server" (https://fedorahosted.org/k12linux/wiki/LiveServer).

I also had to fix "/opt/ltsp/i386/etc/ssh/ssh_known_hosts" to match the
keys of the new server.

More precisely:

(opt_ltsp.k12linux.i386.tgz and var_lib_tftpboot.k12linux.i386.tgz were
created from K12Linux Live Server)

mv /opt/ltsp /opt/ltsp.bak
tar -xzf opt_ltsp.k12linux.i386.tgz -C /opt
mv /var/lib/tftpboot /var/lib/tftpboot.bak
tar -xzf var_lib_tftpboot.k12linux.i386.tgz -C /var/lib
chcon -u system_u /opt/ltsp -R
restorecon /var/lib/tftpboot -R

# replace these with your values
IP_ADDR_ETH0=192.168.0.1
IP_ADDR_ETH1=10.0.0.254

FILE=/opt/ltsp/i386/etc/ssh/ssh_known_hosts
echo -n "$(hostname) " > $FILE
cat /etc/ssh/ssh_host_dsa_key.pub >> $FILE
echo -n "$(hostname) " >> $FILE
cat /etc/ssh/ssh_host_rsa_key.pub >> $FILE
echo -n "$IP_ADDR_ETH0 " >> $FILE
cat /etc/ssh/ssh_host_dsa_key.pub >> $FILE
echo -n "$IP_ADDR_ETH0 " >> $FILE
cat /etc/ssh/ssh_host_rsa_key.pub >> $FILE
echo -n "$IP_ADDR_ETH1 " >> $FILE
cat /etc/ssh/ssh_host_dsa_key.pub >> $FILE
echo -n "$IP_ADDR_ETH1 " >> $FILE
cat /etc/ssh/ssh_host_rsa_key.pub >> $FILE


Em Sex, 2009-02-13 às 13:15 -0300, Danilo Câmara escreveu:
> So far I have successfully installed LTSP in Fedora 10 x86_64 servers
> (for i386 thin-clients) but when installing on Fedora 10 i386 servers I
> always get the following error message in ltsp-build-client:
> 
>   ...
>   Installing: perl-Pod-Simple              ##################### [387/388] 
>   Installing: hpijs                        ##################### [388/388] 
> 
> umount: /var/tmp/imgcreate-mDg5Ft/install_root: device is busy.
>         (In some cases useful info about processes that use
>          the device is found by lsof(8) or fuser(1))
> /usr/share/ltsp/plugins/ltsp-build-client/common/010-chroot-tagging: line 3: /opt/ltsp/i386/etc/ltsp_chroot: No such file or directory
> error: LTSP client installation ended abnormally
> 
>  
> The best match I found on the Web about this is on
> https://www.redhat.com/archives/fedora-livecd-list/2008-February/msg00120.html
> but there was no conclusive solution there.
> 
> 
> I am installing from the LTSP packages in Fedora 10 distribution and did
> the following configurations:
> 
> diff /etc/ltsp/ltsp-build-client.conf.original /etc/ltsp/ltsp-build-client.conf
> 8c8
> < # option_cache_value=/var/cache/chroot
> ---
> > option_cache_value=/var/cache/chroot
> 10c10
> < # option_arch_value=i386
> ---
> > option_arch_value=i386
>  
> 
> and these configuration to use our local network mirror of the packages
> (downloading from web I got the same results)
> 
> diff /etc/ltsp/kickstart/Fedora/10/ltsp-i386.ks.original /etc/ltsp/kickstart/Fedora/10/ltsp-i386.ks
> 6,8c6,8
> < repo --name=released-10-i386 --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-10&arch=i386
> < repo --name=updates-10-i386 --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f10&arch=i386
> < repo --name=temporary-10-i386 --baseurl=http://togami.com/~k12linux-temporary/fedora/10/i386/
> ---
> > repo --name=released-10-i386 --baseurl=file:///home/Packages/Linux/Fedora/10/i386/os/
> > repo --name=updates-10-i386 --baseurl=file:///home/Packages/Linux/Fedora/10/i386/updates/
> > repo --name=temporary-10-i386 --baseurl=file:///home/Packages/Linux/Fedora/10/i386/k12linux/
> 
> 
> Danilo Camara




More information about the K12OSN mailing list