[Rear-users] rear mkrescue hangs on SLES 9 (SP4)

Schlomo Schapiro schlomo at schapiro.org
Thu Jan 24 21:06:49 CET 2008


Hi Werner,

I also would guess that the ssh files are not there where the sed call expects
them to be and the bug here is that we don't verify that come files got copied.

As to why it doesn't copy the files, I don't know. If this is a VM then you
could send it to me and I take a look, call me for other options to solve this
problem.

Regards,
Schlomo

Werner Flamme wrote:
> Werner Flamme   [23.01.2008 16:34]:
> 
> One more debug hint:
> 
> the script now reads like this:
> echo "$0 part 1: $ROOTFS_DIR"
> echo "now: ls -laR $ROOTFS_DIR/etc/ss*"
> echo '-----'
> ls -laR "$ROOTFS_DIR/etc/ssh*"
> echo '-----'
> 
> And the output is:
> Copy kernel modules OK
> /usr/sbin/rear part 1: /tmp/rear.26317/rootfs
> now: ls -laR /tmp/rear.26317/rootfs/etc/ss*
> -----
> -----
> 
> Hm. Though I am logged in as root and there is an entry telling me that
> /etc/ssh is copied this obviously does not happen:
> # grep -n /etc/ssh /tmp/rear.log
> 69:2008-01-24 11:22:55 Will copy /etc/rear /usr/share/rear /dev
> /etc/protocols /etc/services /etc/rpc /etc/termcap /usr/share/terminfo
> /etc/resolv.conf /etc/hosts /etc/host.conf /etc/iproute2
> /lib/modules/2.6.5-7.286-smp/modules.alias
> /lib/modules/2.6.5-7.286-smp/modules.ccwmap
> /lib/modules/2.6.5-7.286-smp/modules.dep
> /lib/modules/2.6.5-7.286-smp/modules.ieee1394map
> /lib/modules/2.6.5-7.286-smp/modules.inputmap
> /lib/modules/2.6.5-7.286-smp/modules.isapnpmap
> /lib/modules/2.6.5-7.286-smp/modules.pcimap
> /lib/modules/2.6.5-7.286-smp/modules.symbols
> /lib/modules/2.6.5-7.286-smp/modules.usbmap /etc/modules.conf
> /etc/modprobe.conf /etc/modprobe.conf.local /etc/modprobe.conf.local~
> /etc/modprobe.d /etc/ntp.conf /etc/ssh /root/.ssh and exclude  /dev/shm/SAP*
> 93:ls: /tmp/rear.26317/rootfs/etc/ssh*: No such file or directory
> 
> Just to be sure:
> # ll /etc/ssh
> total 188
> drwxr-xr-x   2 root root   4096 Jan 23 16:35 .
> drwxr-xr-x  72 root root   8192 Jan 23 15:35 ..
> -rw-------   1 root root 132839 Sep 19 15:12 moduli
> -rw-r--r--   1 root root   2517 Sep 19 15:11 ssh_config
> -rw-------   1 root root    668 Aug 31  2005 ssh_host_dsa_key
> -rw-r--r--   1 root root    601 Aug 31  2005 ssh_host_dsa_key.pub
> -rw-------   1 root root    526 Aug 31  2005 ssh_host_key
> -rw-r--r--   1 root root    330 Aug 31  2005 ssh_host_key.pub
> -rw-------   1 root root    883 Aug 31  2005 ssh_host_rsa_key
> -rw-r--r--   1 root root    221 Aug 31  2005 ssh_host_rsa_key.pub
> -rw-r--r--   1 root root    239 May  8  2007 sshd_banner
> -rw-r--r--   1 root root   3013 Jan 23 16:35 sshd_config
> -rw-r-----   1 root root   3466 Dec  2  2005 sshd_config.rpmnew
> 
> The directory exists and contains files. But it is not copied, so no
> files are in $OOTFS_DIR/etc/ssh. This may be the cause for sed to hang.
> However, I'd like to know why this directory is not copied...
> 
> Regards,
> Werner




More information about the rear-users mailing list