platform/upstream/system-installer.git
10 years agoPartially revert "Move the partition logic to GNU parted"
Patrick McCarty [Thu, 1 Aug 2013 17:37:08 +0000 (10:37 -0700)]
Partially revert "Move the partition logic to GNU parted"

In an upcoming change, we will be building an input string to pass to
sgdisk to support GPT. To simplify the logic in the script, we also can
build an input string for sfdisk, so switch back to sfdisk for now.

This partially reverts commit b667b691fe8d8ae4dfa2558bd1060ea92823f632

Change-Id: Ica44876887c64b3a26808e77dc6d88b07a997818

10 years agoFix indentation of conditional statements
Patrick McCarty [Thu, 1 Aug 2013 18:04:54 +0000 (11:04 -0700)]
Fix indentation of conditional statements

Change-Id: I7e7aca3e3b870dd685012638d4c9ec48c57acff8

10 years agoFix a typo in the conf generator script
Patrick McCarty [Fri, 2 Aug 2013 23:11:31 +0000 (16:11 -0700)]
Fix a typo in the conf generator script

Change-Id: I535c98bcb5c0bc41eea4c2844e70659bb6d9f42b

10 years agoMake use of only shell builtins to loop over partitions
William Douglas [Tue, 30 Jul 2013 18:25:43 +0000 (11:25 -0700)]
Make use of only shell builtins to loop over partitions

Instead of using the external seq and expr programs, use a shell
variable for looping over partitions. In this case the
INSTALLER_FW_PART_COUNT must be checked to have been set by MIC
so do so before starting the loop.

Change-Id: I46fc4603510761bb092fe3217fc82d9dbce87f46
Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoCreate or overwrite on first write to installer.conf
William Douglas [Tue, 30 Jul 2013 18:05:29 +0000 (11:05 -0700)]
Create or overwrite on first write to installer.conf

Ensure that there isn't anything left over in the installer.conf file
before the installer-conf-creator script runs by not using append for
the first write.

This removes implicit assumption that there is not a installer.conf
in place before the installer-conf-creator script runs making things
a little safer.

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoQuote all variables when creating installer.conf
William Douglas [Tue, 30 Jul 2013 17:54:24 +0000 (10:54 -0700)]
Quote all variables when creating installer.conf

Instead of selectively quoting only variables that are expected to
contain whitespace, quote all variables as there are not downsides
for quoting with our use case as this is safer and makes the code
cleaner.

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoUse /bin/sh since we don't need bash features
William Douglas [Tue, 30 Jul 2013 17:05:50 +0000 (10:05 -0700)]
Use /bin/sh since we don't need bash features

Also add options for disabling pathname expansion and exit
immediately if an untested expression fails.

Note we do not set -u as we expect to use unset variables as MIC is
not setting every INSTALLERFW_* variable correctly but this may be
changed in the future.

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoquote vars that may contain spaces
William Douglas [Thu, 25 Jul 2013 19:41:22 +0000 (12:41 -0700)]
quote vars that may contain spaces

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoAdd script to export installer variables from MIC
William Douglas [Tue, 23 Jul 2013 20:00:29 +0000 (13:00 -0700)]
Add script to export installer variables from MIC

This script is intended to be run in MIC %post section so that the
installer will be able to use the same settings as image creation did
to setup the target device's partition, bootloader, and filesystem
types.

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoremove ivi/pc hardcoding
Anas Nashif [Fri, 19 Jul 2013 18:16:09 +0000 (14:16 -0400)]
remove ivi/pc hardcoding

- We now rely on one single configuration file that can be set
when creating images.
- Added option -a to make it work with plymouth when called from
 systemd
- renamed pc-installer -> system-installer
- Cleanup spec

Change-Id: I043cd63675cc455f5f2b7d1c207841d403effbb7
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
10 years agoMove the partition logic to GNU parted
Manish Sinha [Tue, 23 Jul 2013 00:44:03 +0000 (17:44 -0700)]
Move the partition logic to GNU parted

Changes
* The partition now depends on parted instead of sfdisk
* The partition table is now gpt instead of msdos
* The exit $RETVAL is removed to avoid sciprt exiting after
  finding the partitions

10 years agoMake pc-installer work for IVI images which use raw image instead of squashfs
Manish Sinha [Mon, 24 Jun 2013 20:48:31 +0000 (13:48 -0700)]
Make pc-installer work for IVI images which use raw image instead of squashfs

Changes
* Check if the image if PC, then use btrfs ignoring any config file
* If it is not a PC image, try to read the installer.conf file to check the existence of
    FILESYSTEM=somefs
* If none work, then try checking what all filesystems are supported by
    installer and the kernel
* Use full /sbin/sfdisk -when installing IVI images, sfdisk cannot be found error
* Create btrfs subvolume only if the filesystem is btrfs
* For squashfs image is not present, then SRCOSMNT as /
* Exclude /media/* from rsync as during IVI, it leads to infinite recursive copy
* Exclude other temporary mount points for virtual filesystems
* Put rootflags=subvol=tizen in extlinux.conf only if it is a PC image
* IVI does not have initramfs, so copy that file only if it is a PC image
* vmlinuz* matches multiple files, so copying it to one single file won't work. Copy
  all the files and then rename vmlinuz to vmlinuz0
* Replace extlinux with /sbin/extlinux
* sync the filesystem before unmount and not after
* Use echo when plymouth isn't available

Signed-off-by: Manish Sinha <manish.sinha@intel.com>
Change-Id: I605e35b1a101d92735e6b5465b24291f382f11a8

10 years agoMerge "resetting manifest requested domain to floor" into tizen
Ryan Ware [Mon, 8 Jul 2013 16:37:04 +0000 (09:37 -0700)]
Merge "resetting manifest requested domain to floor" into tizen

10 years agoresetting manifest requested domain to floor
Alexandru Cornea [Mon, 1 Jul 2013 18:36:12 +0000 (21:36 +0300)]
resetting manifest requested domain to floor

10 years agoDo not use compression flag when performing rsync
Michael I Doherty [Mon, 1 Jul 2013 14:04:23 +0000 (15:04 +0100)]
Do not use compression flag when performing rsync

10 years agochangelog
William Douglas [Tue, 25 Jun 2013 16:48:33 +0000 (09:48 -0700)]
changelog

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoCreate an initial factory default snapshot
William Douglas [Fri, 21 Jun 2013 19:08:18 +0000 (12:08 -0700)]
Create an initial factory default snapshot

Add an inital snapshot after files have been installed to the target
device using snapper.

Change-Id: I452818b88c4cb174e65ff4110e707e7ed80a929c
Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoEnsure that the boot and shutdown are quiet by using splash=silent
Michael I Doherty [Wed, 19 Jun 2013 14:48:48 +0000 (15:48 +0100)]
Ensure that the boot and shutdown are quiet by using splash=silent

10 years agochangelog
William Douglas [Tue, 18 Jun 2013 21:41:10 +0000 (14:41 -0700)]
changelog

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoFix typo
William Douglas [Thu, 6 Jun 2013 19:21:07 +0000 (12:21 -0700)]
Fix typo

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoUse the swap partition.
William Douglas [Fri, 31 May 2013 19:43:34 +0000 (12:43 -0700)]
Use the swap partition.

While we were creating a partition to be used for swap, it was not
actually getting formatted or mounted.

Also since we are using swap for hibernate make sure to add resume
from the swap partition to the syslinux config file.

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agochangelog
William Douglas [Tue, 14 May 2013 23:07:31 +0000 (16:07 -0700)]
changelog

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoUpdate the plymouth theme after install
William Douglas [Tue, 14 May 2013 21:21:36 +0000 (14:21 -0700)]
Update the plymouth theme after install

Once Tizen has been installed change the plymouth theme to be the
boot and update version.

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoRemove old snapshots subvolume creation.
William Douglas [Mon, 15 Apr 2013 22:12:15 +0000 (15:12 -0700)]
Remove old snapshots subvolume creation.

Also reword the instructions for rebooting after install.

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoMerge "Update snapshots location for snapper"
Nashif, Anas [Fri, 12 Apr 2013 09:10:11 +0000 (02:10 -0700)]
Merge "Update snapshots location for snapper"

11 years agoUpdate snapshots location for snapper
William Douglas [Wed, 10 Apr 2013 13:41:26 +0000 (06:41 -0700)]
Update snapshots location for snapper

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoupdate snapshots location for snapper
William Douglas [Wed, 10 Apr 2013 13:41:26 +0000 (06:41 -0700)]
update snapshots location for snapper

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoDepend on the new btrfs-progs instead
Patrick McCarty [Wed, 6 Mar 2013 22:33:19 +0000 (14:33 -0800)]
Depend on the new btrfs-progs instead

Change-Id: If721abf35a0f9e6c97cc64a5047fb817a647d4c5

11 years agoCreate btrfs filesystem on install
William Douglas [Thu, 21 Feb 2013 20:22:57 +0000 (12:22 -0800)]
Create btrfs filesystem on install

Have the rootfs be created as a btrfs partition. Also create two
subvolumes, one to host the tizen install and one to host the tizen
subvolume snapshots. The installer will set the tizen subvolume as
the default subvolume and take a snapshot of it after install.

Oh and fix reboot not working right.

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoReboot at end of installation process
Anas Nashif [Wed, 20 Feb 2013 02:26:47 +0000 (18:26 -0800)]
Reboot at end of installation process

11 years agoreboot when rR are pressed
Anas Nashif [Wed, 20 Feb 2013 02:26:19 +0000 (18:26 -0800)]
reboot when rR are pressed

11 years agoDo not use initrd on installed system
Anas Nashif [Wed, 20 Feb 2013 02:23:21 +0000 (18:23 -0800)]
Do not use initrd on installed system

11 years agoNo need for initrd when installed
Anas Nashif [Wed, 20 Feb 2013 02:22:58 +0000 (18:22 -0800)]
No need for initrd when installed

11 years agoUpdate default kernel boot path.
William Douglas [Thu, 31 Jan 2013 22:53:57 +0000 (14:53 -0800)]
Update default kernel boot path.

We create a symlink from our default kernel to /boot/vmlinuz so use that
as the kernel boot target.

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agofixed plymouth messages
Anas Nashif [Wed, 19 Dec 2012 18:49:04 +0000 (10:49 -0800)]
fixed plymouth messages

11 years agofixed plymouth messages
Anas Nashif [Wed, 19 Dec 2012 18:48:46 +0000 (10:48 -0800)]
fixed plymouth messages

11 years agoadd changelog
Anas Nashif [Wed, 19 Dec 2012 17:57:56 +0000 (09:57 -0800)]
add changelog

11 years agoadd requirements
Anas Nashif [Wed, 19 Dec 2012 17:31:30 +0000 (09:31 -0800)]
add requirements

11 years agoadd requirements
Anas Nashif [Wed, 19 Dec 2012 17:31:16 +0000 (09:31 -0800)]
add requirements

11 years agoadd plymouth message
Anas Nashif [Wed, 19 Dec 2012 17:30:24 +0000 (09:30 -0800)]
add plymouth message

11 years agoadd plymouth message
Anas Nashif [Wed, 19 Dec 2012 17:29:08 +0000 (09:29 -0800)]
add plymouth message

11 years agofixed shell call
Anas Nashif [Wed, 19 Dec 2012 16:16:00 +0000 (08:16 -0800)]
fixed shell call

11 years agofixed menu
Anas Nashif [Wed, 19 Dec 2012 15:52:23 +0000 (07:52 -0800)]
fixed menu

11 years agoadd packaging
Anas Nashif [Wed, 19 Dec 2012 14:45:30 +0000 (06:45 -0800)]
add packaging

11 years agoadd packaging
Anas Nashif [Wed, 19 Dec 2012 14:44:48 +0000 (06:44 -0800)]
add packaging

11 years agoadd packaging
Anas Nashif [Wed, 19 Dec 2012 14:42:37 +0000 (06:42 -0800)]
add packaging

11 years agoadd packaging
Anas Nashif [Wed, 19 Dec 2012 14:24:31 +0000 (06:24 -0800)]
add packaging

11 years agoadd packaging
Anas Nashif [Wed, 19 Dec 2012 14:22:39 +0000 (06:22 -0800)]
add packaging

11 years agoinitial
Anas Nashif [Sat, 24 Nov 2012 05:18:15 +0000 (21:18 -0800)]
initial