Changeset 3722d31 for LFS/master.sh


Ignore:
Timestamp:
10/06/2022 08:26:29 AM (2 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
262e174
Parents:
87eb9e9
Message:

Call kernel filesystem scripts from Makefile

Instead of having them inside the Makefile, which implies editing
them (automatically), which is not robust if anything changes:
it got broken when a test for a mountpoint was added...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r87eb9e9 r3722d31  
    287287  done
    288288
    289   # Store virtual kernel file systems commands:
    290   devices=`cat ../kernfs-scripts/devices.sh | \
    291             sed -e 's|^|        |'   \
    292                 -e 's|mount|sudo &|' \
    293                 -e 's|mkdir|sudo &|' \
    294                 -e 's|\\$|&&|g' \
    295                 -e 's|\$|; \\\\|' \
    296                 -e 's|then|& :|' \
    297                 -e 's|\$\$LFS|$(MOUNT_PT)|g'`
    298   teardown=`cat ../kernfs-scripts/teardown.sh | \
    299             sed -e 's|^|        |'   \
    300                 -e 's|umount|-sudo &|' \
    301                 -e 's|\$LFS|$(MOUNT_PT)|'`
    302   teardownat=`cat ../kernfs-scripts/teardown.sh | \
    303               sed -e 's|^|      |'   \
    304                   -e 's|umount|@-sudo &|' \
    305                   -e 's|\$LFS|$(MOUNT_PT)|'`
    306289  # Drop in the main target 'all:' and the chapter targets with each sub-target
    307290  # as a dependency.
     
    310293
    311294all:    ck_UID ck_terminal mk_SETUP mk_LUSER mk_SUDO mk_CHROOT mk_BOOT create-sbu_du-report mk_BLFS_TOOL mk_CUSTOM_TOOLS
    312 $teardownat
     295        @sudo env LFS=\$(MOUNT_PT) kernfs-scripts/teardown.sh
    313296        @sudo make do_housekeeping
    314297        @echo $VERSION > lfs-release && \\
     
    395378
    396379devices: ck_UID
    397 $devices
     380        sudo env LFS=\$(MOUNT_PT) kernfs-scripts/devices.sh
    398381EOF
    399382) >> $MKFILE
     
    410393
    411394teardown:
    412 $teardown
     395        sudo env LFS=\$(MOUNT_PT) kernfs-scripts/teardown.sh
    413396
    414397chroot1: devices
Note: See TracChangeset for help on using the changeset viewer.