Changeset 3523


Ignore:
Timestamp:
Mar 3, 2016, 9:08:01 PM (21 months ago)
Author:
bruno
Message:

Fix some missing cd $mountpoint for udev handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3522 r3523  
    26122612        echo "udev device manager found" > $mountpoint/tmp/USE-UDEV
    26132613        LogFile "INFO: udev device manager found"
    2614         tar cf - -C / /etc/udev 2> $templog | tar xf -  || LogIt "ERROR: Problem in /etc/udev analysis" $templog
     2614        tar cf - -C / /etc/udev 2> $templog | (cd $mountpoint ; tar xf -)  || LogIt "ERROR: Problem in /etc/udev analysis" $templog
    26152615        # This avoids NIC remapping if on another machine at restore time on Debian/Ubuntu at least
    26162616        rm -f ./etc/udev/rules.d/[z]*[0-9][0-9][-_]persistent-net.rules
    26172617        # Do not do it if it's a link (Ubuntu 64 bits #503)
    26182618        if [ -e "/lib64/udev" ] && [ ! -h "/lib64" ] && [ ! -h "/lib64/udev" ]; then
    2619             tar cf - -C / /lib64/udev 2> $templog | tar xf -  || LogIt "ERROR: Problem in /lib64/udev analysis" $templog
     2619            tar cf - -C / /lib64/udev 2> $templog | (cd $mountpoint ; tar xf -)  || LogIt "ERROR: Problem in /lib64/udev analysis" $templog
    26202620        fi
    26212621        if [ -e "/lib32/udev" ] && [ ! -h "/lib32" ] && [  ! -h "/lib32/udev" ]; then
    2622             tar cf - -C / /lib32/udev 2> $templog | tar xf -  || LogIt "ERROR: Problem in /lib32/udev analysis" $templog
     2622            tar cf - -C / /lib32/udev 2> $templog | (cd $mountpoint ; tar xf -)  || LogIt "ERROR: Problem in /lib32/udev analysis" $templog
    26232623        fi
    26242624        if [ -e "/lib/udev" ] && [ ! -h "/lib" ] && [  ! -h "/lib/udev" ]; then
    2625             tar cf - -C / /lib/udev 2> $templog | tar xf -  || LogIt "ERROR: Problem in /lib/udev analysis" $templog
     2625            tar cf - -C / /lib/udev 2> $templog | (cd $mountpoint ; tar xf -)  || LogIt "ERROR: Problem in /lib/udev analysis" $templog
    26262626        fi
    26272627        if [ -e "/usr/lib/udev" ] && [ ! -h "/usr/lib" ] && [  ! -h "/usr/lib/udev" ]; then
    2628             tar cf - -C / /usr/lib/udev 2> $templog | tar xf -  || LogIt "ERROR: Problem in /usr/lib/udev analysis" $templog
     2628            tar cf - -C / /usr/lib/udev 2> $templog | (cd $mountpoint ; tar xf -)  || LogIt "ERROR: Problem in /usr/lib/udev analysis" $templog
    26292629        fi
    26302630        if [ -x /sbin/udevd ] || [ -x /usr/bin/udevd ] || [ -x /usr/lib/systemd/systemd-udevd ] || [ -x /lib/systemd/systemd-udevd ]; then
Note: See TracChangeset for help on using the changeset viewer.