1
0
Fork 0

Mve tasks to script

This commit is contained in:
Braiden Vasco 2017-07-02 22:58:17 +00:00
parent 1a71de9634
commit 0c5c055e63
4 changed files with 17 additions and 20 deletions

View file

@ -1,7 +0,0 @@
#!/bin/bash -e
on_chroot << EOF
apt-get update
apt-get -y dist-upgrade
apt-get clean
EOF

View file

@ -1,3 +0,0 @@
#/bin/bash -e
install -m 644 files/resolv.conf ${ROOTFS_DIR}/etc/

View file

@ -1,10 +0,0 @@
#!/bin/bash -e
IMGID="$(fdisk -l "$IMG_FILE" | sed -n 's/Disk identifier: 0x\([^ ]*\)/\1/p')"
BOOT_PARTUUID="$IMGID-01"
ROOT_PARTUUID="$IMGID-02"
sed -i "s/BOOTDEV/PARTUUID=$BOOT_PARTUUID/" "$ROOTFS_DIR/etc/fstab"
sed -i "s/ROOTDEV/PARTUUID=$ROOT_PARTUUID/" "$ROOTFS_DIR/etc/fstab"
sed -i "s/ROOTDEV/PARTUUID=$ROOT_PARTUUID/" "$BOOTFS_DIR/cmdline.txt"

View file

@ -1,5 +1,22 @@
#!/bin/bash -e
on_chroot << EOF
apt-get update
apt-get -y dist-upgrade
apt-get clean
EOF
install -m 644 files/resolv.conf ${ROOTFS_DIR}/etc/
IMGID="$(fdisk -l "$IMG_FILE" | sed -n 's/Disk identifier: 0x\([^ ]*\)/\1/p')"
BOOT_PARTUUID="$IMGID-01"
ROOT_PARTUUID="$IMGID-02"
sed -i "s/BOOTDEV/PARTUUID=$BOOT_PARTUUID/" "$ROOTFS_DIR/etc/fstab"
sed -i "s/ROOTDEV/PARTUUID=$ROOT_PARTUUID/" "$ROOTFS_DIR/etc/fstab"
sed -i "s/ROOTDEV/PARTUUID=$ROOT_PARTUUID/" "$BOOTFS_DIR/cmdline.txt"
on_chroot << EOF
/etc/init.d/fake-hwclock stop
hardlink -t /usr/share/doc