profile/ivi/setup-efi-ivi.git
10 years agosetup-efi-ivi: always use the mount prefix variable 42/10242/1
Artem Bityutskiy [Wed, 25 Sep 2013 07:47:38 +0000 (10:47 +0300)]
setup-efi-ivi: always use the mount prefix variable

Installer framework exports the INSTALLERFW_MOUNT_PREFIX varable which
basically tells what is the root directory for the system image. Usually this
is just "/". But it may be something else too, for example, when we install the
system to a different disk, all the disk partitions will be temporarily mounted
somewhere like /mnt/install_disk/, and this will be the mount prefix.

So, the problem is that we did not use the mount prefix for searching for
gummiboot. It is really expected to be present on the target
system/environment, not in the system/environment we are currently running.
This patch fixes the issue.

Change-Id: Ic414087fcac454109b8c50aa01643a00886bcb8c
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agopackaging: release out (fix x64 path) tizen_ivi_genivi tizen_ivi_release accepted/tizen/20130801.171426 accepted/tizen/ivi/genivi/20140131.070856 accepted/tizen_ivi_release/20131120.050005 ivi_oct_m2 submit/tizen/20130801.103707 submit/tizen_ivi_generic/20140131.065504 submit/tizen_ivi_genivi/20140131.070648 submit/tizen_ivi_milestone/20131113.054520 submit/tizen_ivi_release/20131120.032744
Artem Bityutskiy [Thu, 1 Aug 2013 10:36:23 +0000 (13:36 +0300)]
packaging: release out (fix x64 path)

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agoMerge "fix 64bit efi bootloader path" into tizen
Artem Bityutskiy [Wed, 31 Jul 2013 10:30:39 +0000 (03:30 -0700)]
Merge "fix 64bit efi bootloader path" into tizen

10 years agosetup-gummiboot-conf: fix the script accepted/tizen/20130730.200410 submit/tizen/20130730.133812
Artem Bityutskiy [Mon, 29 Jul 2013 14:35:15 +0000 (17:35 +0300)]
setup-gummiboot-conf: fix the script

The script does not really work and fails when it is run in Tizen OS. The
reason is that some functions it calls are udnefined. And the reason for
that is that I forgot to remove some debugging cruft, and the leftovers
cause breakages. Remove that unused junk.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agofix 64bit efi bootloader path 70/6070/1
William Douglas [Mon, 29 Jul 2013 17:45:02 +0000 (10:45 -0700)]
fix 64bit efi bootloader path

Signed-off-by: William Douglas <william.douglas@intel.com>
10 years agosetup-gummiboot-conf: remove junk newline accepted/tizen/20130626.173122 submit/tizen/20130626.130844
Artem Bityutskiy [Wed, 26 Jun 2013 12:36:15 +0000 (15:36 +0300)]
setup-gummiboot-conf: remove junk newline

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: add a missing white-space in loader.conf
Artem Bityutskiy [Wed, 26 Jun 2013 12:12:11 +0000 (15:12 +0300)]
setup-efi-ivi: add a missing white-space in loader.conf

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-gummiboot-conf: use INSTALLERFW_MOUNT_PREFIX
Artem Bityutskiy [Wed, 26 Jun 2013 11:30:22 +0000 (14:30 +0300)]
setup-gummiboot-conf: use INSTALLERFW_MOUNT_PREFIX

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: use less hard-coding
Artem Bityutskiy [Wed, 26 Jun 2013 11:22:40 +0000 (14:22 +0300)]
setup-efi-ivi: use less hard-coding

We do require that the boot partition is under /boot. But let's do it in less
places. Once we know the boot partition number (N), use the
INSTALLERFW_PARTN_MOUNTPOINT instead.

Also, remove the vfat type checking - it is an unneeded complication.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-gummiboot-conf: improve commentaries
Artem Bityutskiy [Wed, 26 Jun 2013 11:00:07 +0000 (14:00 +0300)]
setup-gummiboot-conf: improve commentaries

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agopackaging: release out (setup-efi-ivi improvements)
Artem Bityutskiy [Wed, 26 Jun 2013 10:47:55 +0000 (13:47 +0300)]
packaging: release out (setup-efi-ivi improvements)

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: generate configuration for all kernels
Artem Bityutskiy [Wed, 26 Jun 2013 10:45:25 +0000 (13:45 +0300)]
setup-efi-ivi: generate configuration for all kernels

Generate gummiboot configuration files for all installed kernels, not only for
th newest kernel. Make the newest kernel to be the default, though.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: document which environment variables we depend on
Artem Bityutskiy [Wed, 26 Jun 2013 10:25:30 +0000 (13:25 +0300)]
setup-efi-ivi: document which environment variables we depend on

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: use -u shell option
Artem Bityutskiy [Wed, 26 Jun 2013 10:08:43 +0000 (13:08 +0300)]
setup-efi-ivi: use -u shell option

It is a good practice to use the -u shell option because it helps writing
cleaner and more secure scripts. Start using it.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: do not assume that boot partition in in /boot
Artem Bityutskiy [Wed, 26 Jun 2013 10:02:36 +0000 (13:02 +0300)]
setup-efi-ivi: do not assume that boot partition in in /boot

Do not assume that the boot partition is currently mounted under /boot. In
pc-installer environment it can be mounted under a different directory.

Instead, use the INSTALLERFW_MOUNT_PREFIX variable to find the path to the boot
partition. This should let pc-installer use this script as well.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-gummiboot-conf: handle the case of absent default entry
Artem Bityutskiy [Wed, 26 Jun 2013 09:58:06 +0000 (12:58 +0300)]
setup-gummiboot-conf: handle the case of absent default entry

When the kernel which corresponds to the current default entry is removed, the
script fails. Fix this.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-gummiboot-conf: add new script submit/tizen/20130626.093738
Artem Bityutskiy [Wed, 26 Jun 2013 09:25:47 +0000 (12:25 +0300)]
setup-gummiboot-conf: add new script

This script updates gummiboot configuration files. Can be used when a new
kernel was installed or a kernel was uninstalled.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: amend the kernel entry file
Artem Bityutskiy [Wed, 26 Jun 2013 09:24:10 +0000 (12:24 +0300)]
setup-efi-ivi: amend the kernel entry file

Massage the kernel entry file to make it a little bit more compatible with what
other automatic scripts will generate.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: use printf instead of echo
Artem Bityutskiy [Wed, 26 Jun 2013 09:21:37 +0000 (12:21 +0300)]
setup-efi-ivi: use printf instead of echo

This is better because echo is very different in different shells, and
interpret various special bytes differently, and its behavior may sometimes be
very surprizing.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agopackaging: release out (rename kernel entry) submit/tizen/20130626.050955
Artem Bityutskiy [Wed, 26 Jun 2013 04:44:23 +0000 (07:44 +0300)]
packaging: release out (rename kernel entry)

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: rename the gummiboot kernel entry
Artem Bityutskiy [Wed, 26 Jun 2013 04:37:49 +0000 (07:37 +0300)]
setup-efi-ivi: rename the gummiboot kernel entry

Use 'vmlinuz-$VERSION' instead of 'vmlinuz-default'. This makes it easier to
deal with several kernels.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agosetup-efi-ivi: add Copyright/License information
Artem Bityutskiy [Wed, 26 Jun 2013 04:31:19 +0000 (07:31 +0300)]
setup-efi-ivi: add Copyright/License information

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
10 years agoInitial commit accepted/tizen/20130625.160256 submit/tizen/20130625.144120
Artem Bityutskiy [Tue, 25 Jun 2013 13:19:16 +0000 (16:19 +0300)]
Initial commit

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>