[gnome-ostree] build: Use correct initramfs name...
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] build: Use correct initramfs name...
- Date: Sat, 27 Apr 2013 11:43:24 +0000 (UTC)
commit 0dea1802d7c42572e371b3db65183b7c3c39bdf5
Author: Colin Walters <walters verbum org>
Date: Fri Apr 26 19:11:42 2013 -0400
build: Use correct initramfs name...
Oops. This was only not a problem because ostree doesn't correctly
manage kernels yet, and so it wasn't garbage collecting the old one.
src/js/tasks/task-build.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/js/tasks/task-build.js b/src/js/tasks/task-build.js
index ae223d8..79d33c8 100644
--- a/src/js/tasks/task-build.js
+++ b/src/js/tasks/task-build.js
@@ -1188,7 +1188,8 @@ const TaskBuild = new Lang.Class({
let [composeRootdir, relatedTmpPath] = this._checkoutOneTree(runtimeTarget,
componentBuildRevs, cancellable);
let [kernelRelease, initramfsPath] = archInitramfsImages[architecture];
- let targetInitramfsPath =
composeRootdir.resolve_relative_path('boot').get_child(initramfsPath.get_basename());
+ let initramfsTargetName = 'initramfs-' + kernelRelease + '.img';
+ let targetInitramfsPath =
composeRootdir.resolve_relative_path('boot').get_child(initramfsTargetName);
GSystem.file_linkcopy(initramfsPath, targetInitramfsPath, Gio.FileCopyFlags.ALL_METADATA,
cancellable);
let [treename, ostreeRev] = this._commitComposedTree(runtimeTargetName, composeRootdir,
relatedTmpPath, cancellable);
targetRevisions[treename] = ostreeRev;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]