diff options
author | Javier Jardón <jjardon@gnome.org> | 2017-11-26 23:39:48 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2017-12-12 15:58:23 +0000 |
commit | 7df7f3b427739ff7d69da2ba218da0124822892c (patch) | |
tree | 843c75e9bede53862ab101d6a7bcd1da15a33c55 /extensions/image-package-example/disk-install.sh.in | |
parent | 7aad5150f69da42b84994c353283db5daf8e967f (diff) | |
download | definitions-7df7f3b427739ff7d69da2ba218da0124822892c.tar.gz |
Remove all .morph files and files from the old format
Diffstat (limited to 'extensions/image-package-example/disk-install.sh.in')
-rw-r--r-- | extensions/image-package-example/disk-install.sh.in | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/extensions/image-package-example/disk-install.sh.in b/extensions/image-package-example/disk-install.sh.in deleted file mode 100644 index bc8e0e67..00000000 --- a/extensions/image-package-example/disk-install.sh.in +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/sh -# Script for writing the system to an existing disk. -# This formats the disk, extracts the rootfs to it, installs the -# bootloader, and ensures there's appropriate configuration for the -# bootloader, kernel and userland to agree what the rootfs is. - -set -eu - -usage(){ - cat <<EOF -usage: $0 DISK [TARGET_DISK] - -DISK: Where the disk appears on your development machine -TARGET_DISK: What the disk will appear as on the target machine -EOF -} - -. @@SCRIPT_DIR@@/common.sh - -if [ "$#" -lt 1 -o "$#" -gt 2 ]; then - usage - exit 1 -fi - -DISK="$1" -TARGET_DISK="${1-/dev/sda}" - -status Formatting "$DISK" as ext4 -format_disk "$DISK" -( - info Mounting "$DISK" - MP="$(temp_mount -t ext4 "$DISK")" - info Mounted "$DISK" to "$MP" - set +e - ( - set -e - info Copying rootfs onto disk - extract_rootfs "$MP" - info Configuring disk paths - install_fs_config "$MP" "$TARGET_DISK" - info Installing bootloader - install_bootloader "$DISK" "$MP" - ) - ret="$?" - if [ "$ret" != 0 ]; then - warn Filling rootfs failed with "$ret" - fi - info Unmounting "$DISK" from "$MP" and removing "$MP" - untemp_mount "$MP" - exit "$ret" -) |