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

Falk Höppner rear at proficom.de
Tue Apr 22 09:23:31 CEST 2014


Hi Gratien,

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

upgraded rear from 1.15-5 to actually master

> $ grep -r python usr/share/rear/
[..]
> 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/python2 >&2

this is the problem: the second line is deactivated, which results in
missing the needed link. Uncomment the line helped.
Thanks for the hint.

But why was this line deactivated, think it should be preserved for
backwards compatibility?

--
Regards
Falk Höppner


> Gratien D'haese <gratien.dhaese at it3.be> hat am 18. April 2014 um 12:48
> geschrieben:
>
>
> 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
> _______________________________________________
> rear-users mailing list
> rear-users at lists.relax-and-recover.org
> http://pikachu.3ti.be/mailman/listinfo/rear-users


More information about the rear-users mailing list