[rear-users] Problem with creating initrd - /usr/bin/python is missing

Gratien D'haese gratien.dhaese at it3.be
Fri Apr 18 12:48:29 CEST 2014


On Thu, 17 Apr 2014 16:58:40 +0200 (CEST), Falk Höppner wrote:
> Hi,
> 
> found today at a SLES11-SP2 that "rear mkrescue"
> no more added the link /usr/bin/python to the initrd.
> 
> so duplicity failed at restore

$ grep -r python usr/share/rear/
usr/share/rear/restore/DUPLICITY/default/40_restore_duplicity.sh:   
export PYTHONHOME=/usr/lib64/python2.6
usr/share/rear/restore/DUPLICITY/default/40_restore_duplicity.sh:   
export
PYTHONPATH=/usr/lib64/python2.6:/usr/lib64/python2.6/lib-dynload:/usr/lib64/python2.6/site-packages:/usr/lib64/python2.6/site-packages/duplicity
usr/share/rear/rescue/DUPLICITY/default/10_create_symlinks.sh:py=$(readlink
-f $(get_path python))
usr/share/rear/rescue/DUPLICITY/default/10_create_symlinks.sh:ln -sf $v
/bin/$(basename $py) $ROOTFS_DIR/bin/python2 >&2
usr/share/rear/rescue/DUPLICITY/default/10_create_symlinks.sh:#ln -sf $v
/bin/$(basename $py) $ROOTFS_DIR/bin/python
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:# At SLES11
/usr/bin/python is a link to ./python2.6
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:PYTHON="$(which
python)"
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:   
PYTHON_BIN="python"
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/etc/python
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/etc/python2.6
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib/python2.6
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib64/python2.6
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib64/python2.6/lib-dynload
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib64/python2.6/site-packages
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib64/python2.6/site-packages/gnupg.py
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib64/python2.6/site-packages/GnuPGInterface.py
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib64/python2.6/site-packages/duplicity
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib/python2.7
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib64/python2.7
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/lib/python3.1
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/share/python
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/share/python-apt
usr/share/rear/prep/DUPLICITY/default/05_prep_duply.sh:/usr/share/python-support

perhaps you upgraded python? I notice it is rather version bounded...
Gratien


More information about the rear-users mailing list