Changeset 895


Ignore:
Timestamp:
Dec 31, 2016, 12:57:30 PM (11 months ago)
Author:
amain
Message:

rootfs: extract tars leaving permission in tact

Location:
trunk/debian/rootfs
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/rootfs/debian.mk

    r880 r895  
    115115        fi
    116116        @echo "Installing generic files (all):"
    117         sudo bash -c "tar cf - --exclude=".svn" -C $(DEBWRT_EXTRA_ROOTFS_FILES_DIR)/all . | tar -xovf - -C $(ROOTFS_BUILD_DIR)"
     117        sudo bash -c "tar cpf - --exclude=".svn" -C $(DEBWRT_EXTRA_ROOTFS_FILES_DIR)/all . | tar -xpvf - -C $(ROOTFS_BUILD_DIR)"
    118118        @echo "Installing all targets files:"
    119119        sudo mkdir -p $(ROOTFS_BUILD_DIR)/target
    120         sudo bash -c "tar cf - --exclude=".svn" --exclude ./all -C $(DEBWRT_EXTRA_ROOTFS_FILES_DIR) . | tar -xovf - -C $(ROOTFS_BUILD_DIR)/target"
     120        sudo bash -c "tar cpf - --exclude=".svn" --exclude ./all -C $(DEBWRT_EXTRA_ROOTFS_FILES_DIR) . | tar -xpvf - -C $(ROOTFS_BUILD_DIR)/target"
    121121        sudo chmod 600 $(ROOTFS_BUILD_DIR)/etc/ssh/ssh_host_rsa_key
    122122        sudo chmod 600 $(ROOTFS_BUILD_DIR)/etc/ssh/ssh_host_dsa_key
  • trunk/debian/rootfs/files/all/etc/init.d/debwrt

    r887 r895  
    5757            then
    5858                log_action_msg "Extracting target '${target}' specific files from /target/${target}"
    59                 tar cf - -C /target/${target} . | tar xf - --warning=no-timestamp -C /
     59                tar cpf - -C /target/${target} . | tar xpf - --warning=no-timestamp -C /
    6060            else
    6161                # no extra files for this target
  • trunk/debian/rootfs/files/all/usr/sbin/PostInstall

    r891 r895  
    3333sed -i 's!^root:.*!root:$1$Rm/q9RCm$khpJ819vFteZqYNdf60wb1:14254:0:99999:7:::!' /etc/shadow
    3434
    35 # Probably a (new) safety measure from debian, but currently simple
    36 # programs like ping and dnsmasq (as nobody) fail to run will various
    37 # file system access errors.
    38 echo "I: Setting +rx on all directories in /"
    39 find / -maxdepth 1 -mindepth 1 -type d \
    40  | grep -v "root"
    41  | grep -v "lost+found"
    42  | while read dir
    43    do
    44        chmod +rx ${dir}
    45    done
    46 
    4735echo -n "I: syncing disks...."
    4836sync
Note: See TracChangeset for help on using the changeset viewer.