Changeset 24f2c51 for HLFS/master.sh


Ignore:
Timestamp:
12/08/2006 12:21:02 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
63b87af
Parents:
85077e7
Message:

HLFS: Fixed SUDO target.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/master.sh

    r85077e7 r24f2c51  
    319319    # Append each name of the script files to a list (this will become
    320320    # the names of the targets in the Makefile
    321     chapter6="$chapter6 ${this_script}"
     321    case "${this_script}" in
     322      *kernfs* | *changingowner*) runasroot="$runasroot ${this_script}" ;;
     323                               *) chapter6="$chapter6 ${this_script}" ;;
     324    esac
    322325
    323326
     
    335338       continue
    336339    fi
    337 
    338     CHROOT_wrt_target "${this_script}" "$PREV"
     340    # kernfs and changingowner are run in SUDO target
     341    case "${this_script}" in
     342      *kernfs* | *changingowner*)  LUSER_wrt_target  "${this_script}" "$PREV" ;;
     343                               *)  CHROOT_wrt_target "${this_script}" "$PREV" ;;
     344    esac
    339345
    340346    # If $pkg_tarball isn't empty, we've got a package...
     
    354360    fi
    355361
    356     # In the mount of kernel filesystems we need to set HLFS and not to use chroot.
     362    # In kernfs and changingowner we need to set HLFS and not to use chroot.
    357363    case "${this_script}" in
    358       *kernfs* | *changingowner*)
    359         wrt_RunAsRoot "${file}"
    360         ;;
    361       *)   # The rest of Chapter06
    362         CHROOT_wrt_RunAsRoot "${file}"
    363        ;;
     364      *kernfs* | *changingowner*) wrt_RunAsRoot "${file}" ;;
     365                               *) CHROOT_wrt_RunAsRoot "${file}" ;;
    364366    esac
    365367    #
     
    573575SETUP:     $chapter3
    574576LUSER:     $chapter5
    575 SUDO:      060-kernfs 062-changingowner
     577SUDO:      $runasroot
    576578CHROOT:    $chapter6
    577579BOOT:      $chapter7
Note: See TracChangeset for help on using the changeset viewer.