summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Artem Bityutskiy [Fri, 8 Nov 2013 11:44:12 +0000 (13:44 +0200)]
setup-gummitoot-conf: handle commented-out default entries
The 'setup-gummiboot-conf' script does not handle commented-out default
entreis ("# default"). The reason is that the corresponding regexp was
incorrect, because it did not searh from the beginning of the line, because of
missing "^" symbol. This patch fixes the problem.
Change-Id: I0bc8cd92bba127fcbea3908046c3bc209fbf02d1
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Artem Bityutskiy [Thu, 7 Nov 2013 12:59:09 +0000 (14:59 +0200)]
packaging: release out (non-existing kernels handling)
Change-Id: I8e6f9b451307a14281c73b48b6eda92c4be23405
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Artem Bityutskiy [Thu, 7 Nov 2013 12:54:34 +0000 (14:54 +0200)]
setup-gummiboot-conf: fix non-existing kernels handling
This patch is a bug-fix and it fixes the case when the default entry in
'loader.conf' does not actually exist in 'loader/entries'. Instead of failing,
we should just find the newest existing version of the kernel.
Change-Id: I61e169f37b5487b8abd6188a771f37f2f08ab328
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Artem Bityutskiy [Thu, 7 Nov 2013 07:01:42 +0000 (09:01 +0200)]
packaging: release out (no .conf suffix)
Change-Id: I446da12022d6762acf0c87c382684a9836ff81c8
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Artem Bityutskiy [Thu, 7 Nov 2013 06:24:48 +0000 (08:24 +0200)]
setup-gummiboot-conf: fix the default entry name (again)
The default entry on loader.conf should _not_ contain the ".conf" suffix. This
patch fixes 'setup-gummiboot-conf' correspondingly.
Change-Id: If07685002f0025354f5f474e65c0730fdb23af24
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Artem Bityutskiy [Fri, 11 Oct 2013 14:10:12 +0000 (17:10 +0300)]
packaging: release out (correct loader.conf)
Change-Id: I3149033a6680bc15206645c0e3315fa9b16b13df
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Artem Bityutskiy [Fri, 11 Oct 2013 14:06:22 +0000 (17:06 +0300)]
Fix the default entry name
The default entry on loader.conf should _not_ contain the ".conf" suffix, so
let's remove it. Amend the 'setup-gummiboot-conf' file accordingly.
Change-Id: I25717a17e65e1c7c854a32651c344987f23a76dd
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Artem Bityutskiy [Mon, 30 Sep 2013 05:56:14 +0000 (08:56 +0300)]
packaging: release out
Change-Id: I6f93fca567adaa5436a38bca1a4a9fb415e73bcf
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Artem Bityutskiy [Wed, 25 Sep 2013 11:45:12 +0000 (14:45 +0300)]
setup-efi-ivi: minor spelling fixes in comments
Change-Id: I1ea5c767a6979e8b14fabb0c408b243e390eabeb
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Artem Bityutskiy [Wed, 25 Sep 2013 11:33:08 +0000 (14:33 +0300)]
setup-efi-ivi: a minor bug-fix
The 'kernels' variable is supposed to contain a list of kernels, but it
actually only contains the latest kernel. This is not a problem since so fare
we only use this script when there is only one kernel, but nevertheless, worth
fixing.
Change-Id: I1dea6cc09de20dd0fae21a9eebd614f6fdb50549
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
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>
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>
Artem Bityutskiy [Wed, 31 Jul 2013 10:30:39 +0000 (03:30 -0700)]
Merge "fix 64bit efi bootloader path" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>