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

Gratien D'haese gratien.dhaese at it3.be
Wed Apr 23 08:39:16 CEST 2014


 I made a new test release available on the internet - 
 http://download.opensuse.org/repositories/Archiving:/Backup:/Rear:/Snapshot/
 I cleaned up the duplicity/duply code and it should work much better 
 now for both methods.
 Could you test it out and return some feedback into issue 
 https://github.com/rear/rear/issues/394

 Also, could you do me a favor and describe in a few sentences how you 
 uses duplicity with rear, e.g. which settings need to be made in 
 local.conf? Would like to add something about duplicity in our release 
 notes for v1.16 (to be released soon:)

 BTW: BACKUP_PROG=duplicity (or duply) is now auto-detected and defined 
 automatically (no need to do it hand anymore and it is also saved in the 
 rescue.conf for making recovery a bit easier).

 thanks,
 Gratien

 On Tue, 22 Apr 2014 09:23:31 +0200 (CEST), Falk Höppner 
 <rear at proficom.de> wrote:
> 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
>> _______________________________________________


More information about the rear-users mailing list