platform/upstream/pc-installer.git
10 years agoDO_NOT_USE_ME 39/10739/1 accepted/tizen_ivi_panda tizen tizen_ivi_panda accepted/tizen/ivi/panda/20140403.014204 submit/tizen_ivi_panda/20140403.012052
Artem Bityutskiy [Thu, 10 Oct 2013 08:45:53 +0000 (11:45 +0300)]
DO_NOT_USE_ME

Let's be nice to our users and make sure they do not waste time working on this
stalled project.

Change-Id: I3d3701226b1fb766390e766468ece9f7fa8cd9db
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agoFix the UUIDs in the target's /boot/loader/entries/* 90/7790/1 accepted/tizen/ivi/genivi accepted/tizen/ivi/stable accepted/tizen_generic accepted/tizen_ivi tizen_ivi_genivi accepted/tizen/20130912.150740 accepted/tizen/20130912.191634 accepted/tizen/20130912.195654 accepted/tizen/ivi/genivi/20140131.034507 ivi_oct_m2 submit/tizen/20130912.080219 submit/tizen/20130912.090524 submit/tizen_ivi_genivi/20140131.030907
William Douglas [Mon, 5 Aug 2013 21:18:17 +0000 (14:18 -0700)]
Fix the UUIDs in the target's /boot/loader/entries/*

After the rsync, the installed /boot/loader/entries/* will contain the
PARTUUIDs from the raw image and thus do not correspond with the
PARTUUIDs needed for the target partitions.

The fix here is to iterate through the conf files in the
/boot/loader/entries/ directory and substitute the PARTUUID from the
output of 'blkid', with the old PARTUUID in those files.

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agoFix the UUIDs in the target /etc/fstab 56/7756/3
Patrick McCarty [Sat, 3 Aug 2013 00:54:46 +0000 (17:54 -0700)]
Fix the UUIDs in the target /etc/fstab

After the rsync, the installed /etc/fstab will contain the UUIDs from
the raw image and thus do not correspond with the UUIDs needed for the
target partitions.

The fix here is to iterate through the partitions after install, get the
UUIDs from the output of 'blkid', and substituting the old UUIDs with
the new ones.

Change-Id: Iee478c2fc93f5685891c0e7374f23c5e85b05610

10 years agoRemove the ACL option for rsync; fails for vfat 55/7755/3
Patrick McCarty [Sat, 3 Aug 2013 00:35:26 +0000 (17:35 -0700)]
Remove the ACL option for rsync; fails for vfat

If the "preserve-ACL" option is used when we have a separate /boot
partition with vfat filesystem (for EFI installs), then rsync will
refuse to copy over files from this partition, since ACLs are not
supported on vfat.

The copy succeeds after removing this option.

Change-Id: I64bf3a832346e8d1bb72f755062bda0a3de41e9f

10 years agoUse /etc/fstab for now 48/7748/5
Patrick McCarty [Fri, 2 Aug 2013 18:35:44 +0000 (11:35 -0700)]
Use /etc/fstab for now

Eventually we want to switch to use systemd mount units instead of the
fstab, but since the installer will not be generating mount units yet,
the fstab is still required.

Change-Id: I3bc5d2988d159b5fbd652fcc1f37bf57f7fa0ca5

10 years agoSplit extlinux installation into a new function 18/7718/8
Patrick McCarty [Thu, 1 Aug 2013 19:43:06 +0000 (12:43 -0700)]
Split extlinux installation into a new function

The extlinux install should only be done for MBR, so split this logic
out into a new function.

Also, use $INSTALLERFW_KERNEL_OPTS in the extlinux.conf instead of the
hardcoded options.

Change-Id: I2669ebcd9d3327ca18a1d6d102b6ee07d274eeaa

10 years agoRemove the plymouth theme symlink 17/7717/8
Patrick McCarty [Thu, 1 Aug 2013 19:37:26 +0000 (12:37 -0700)]
Remove the plymouth theme symlink

The plymouth themes for PC will be unified in the future, so there's no
need to create a symlink here for special handling.

Change-Id: I047f77cbf2a3d60006bb6ac1faa91e224992e425

10 years agoRemoving the remaining bits of swap support 16/7716/8
Patrick McCarty [Thu, 1 Aug 2013 19:34:53 +0000 (12:34 -0700)]
Removing the remaining bits of swap support

PC is not supporting swap partitions at the moment, so remove the logic
to create the unit files, etc.

Change-Id: I453ea8fa2207f5efc159c83c6855933e66104865

10 years agoMake adjustments for mounting the target partitions 15/7715/8
Patrick McCarty [Thu, 1 Aug 2013 19:32:52 +0000 (12:32 -0700)]
Make adjustments for mounting the target partitions

Use the MOUNTPOINT variables from installer.conf to mount the target
partitions, in preparation for the rsync operation.

NOTE: for now, we expect the rootfs partition to be the *last* entry in
installer.conf so that we can mount it first.

Change-Id: If34fb34855790285e32dd86890a2e38c63c8f73d

10 years agoMake adjustments for formatting the target partitions 14/7714/7
Patrick McCarty [Thu, 1 Aug 2013 18:47:23 +0000 (11:47 -0700)]
Make adjustments for formatting the target partitions

Use the FSTYPE variables from installer.conf to correctly format the
target partitions.

Change-Id: Ibc87219f241e1e9d8268a4f2768760d6f6a81ee1

10 years agoSplit partitioning logic to either run sfdisk or sgdisk 11/7711/7
Patrick McCarty [Thu, 1 Aug 2013 17:59:20 +0000 (10:59 -0700)]
Split partitioning logic to either run sfdisk or sgdisk

Using the input string generated in the appropriate *_options function,
now partition the device using either sfdisk or sgdisk.

Only MBR and GPT are supported, so any other partition table formats are
ignored.

Change-Id: I78ee6bb7fd6077725b30fa5f8622c4ab3c6dcdfc

10 years agoAdd routines to build input strings for sfdisk/sgdisk 10/7710/6
Patrick McCarty [Thu, 1 Aug 2013 17:50:21 +0000 (10:50 -0700)]
Add routines to build input strings for sfdisk/sgdisk

To prepare for partitioning the device, build an input string for either
sfdisk (MBR support) or sgdisk (GPT support) by using the INSTALLERFW
variables from /etc/installer.conf.

Change-Id: If30fa2ea22846072f3f8e57f6b1c39365add24e5

10 years agopackaging: require dosfstools and gptfdisk 12/7712/4
Patrick McCarty [Thu, 1 Aug 2013 18:11:47 +0000 (11:11 -0700)]
packaging: require dosfstools and gptfdisk

Adds new dependencies for the installer:

- dosfstools, to make 'mkfs.vfat' available for EFI image support
- gptfdisk, to make 'sgdisk' available for non-interactive GPT partitioning

Change-Id: Ica741c6fec799d6abb7002b4ebe32a8ad4fa8fac

10 years agoPartially revert "Move the partition logic to GNU parted" 09/7709/2
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 08/7708/2
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 50/7750/1
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 07/6107/2
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 06/6106/1
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 05/6105/1
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 04/6104/1
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>
11 years agoquote vars that may contain spaces 49/6049/1
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>
11 years agoAdd script to export installer variables from MIC 92/5992/1
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>
11 years agoremove ivi/pc hardcoding 97/5897/3
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>
11 years agoMove the partition logic to GNU parted 67/5967/1
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

11 years agoMake pc-installer work for IVI images which use raw image instead of squashfs 20/4220/8
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

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

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

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

11 years agochangelog submit/tizen/20130625.164938
William Douglas [Tue, 25 Jun 2013 16:48:33 +0000 (09:48 -0700)]
changelog

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoCreate an initial factory default snapshot 90/4190/2
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>
11 years agoEnsure that the boot and shutdown are quiet by using splash=silent 11/4111/1
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

11 years agochangelog 71/4071/1 submit/tizen/20130620.233414
William Douglas [Tue, 18 Jun 2013 21:41:10 +0000 (14:41 -0700)]
changelog

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

Signed-off-by: William Douglas <william.douglas@intel.com>
11 years agoUse the swap partition. 88/3988/1
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 10/3910/1
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 09/3909/1
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. accepted/tizen/20130503.225829 accepted/tizen/20130520.100328 accepted/trunk/20130425.114438 submit/tizen/20130503.230909 submit/tizen/20130509.182759 submit/tizen/20130517.023614 submit/trunk/20130415.221309
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 accepted/trunk/20130412.091547 submit/trunk/20130412.085600
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 accepted/trunk/20130410.140356 submit/trunk/20130410.134140 submit/trunk/20130412.085304
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 accepted/trunk/20130307.085048 submit/trunk/20130306.223644
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 accepted/trunk/20130222.001553 submit/trunk/20130221.202608
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 accepted/trunk/20130220.144807 submit/trunk/20130220.022649
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 submit/trunk/20130220.022323
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. accepted/trunk/20130201.002648 submit/trunk/20130131.225555
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 accepted/trunk/20121219.185243 submit/trunk/20121219.184920 submit/trunk/20121219.185022
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 submit/trunk/20121219.175803
Anas Nashif [Wed, 19 Dec 2012 17:57:56 +0000 (09:57 -0800)]
add changelog

11 years agoadd requirements submit/trunk/20121219.175619
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