Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
Change-Id: I8e6f9b451307a14281c73b48b6eda92c4be23405
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
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>
|
|
Change-Id: I446da12022d6762acf0c87c382684a9836ff81c8
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
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>
|
|
Change-Id: I3149033a6680bc15206645c0e3315fa9b16b13df
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
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>
|
|
Change-Id: I6f93fca567adaa5436a38bca1a4a9fb415e73bcf
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
Change-Id: I1ea5c767a6979e8b14fabb0c408b243e390eabeb
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
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>
|
|
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>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
|
|
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>
|
|
Signed-off-by: William Douglas <william.douglas@intel.com>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
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>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
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>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
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>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|
|
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
|