summaryrefslogtreecommitdiffstats
path: root/qt-ostree
diff options
context:
space:
mode:
authorRainer Keller <Rainer.Keller@qt.io>2016-05-03 15:06:26 +0200
committerRainer Keller <Rainer.Keller@qt.io>2016-05-04 10:06:04 +0000
commit88f56708c792dcd528341b2c973a5bd759a179e3 (patch)
treed22d440dac035e4fe0614b68db8078a618b92e08 /qt-ostree
parentc330af9ab2ac888689b08077b0d3012a43792a8d (diff)
Create links in recovery partition
Change-Id: I6bd184b8502d89b310ec646dbca4d2fe925848bf Reviewed-by: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
Diffstat (limited to 'qt-ostree')
-rwxr-xr-xqt-ostree/qt-ostree6
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ostree/qt-ostree b/qt-ostree/qt-ostree
index 6a702f9..50a5772 100755
--- a/qt-ostree/qt-ostree
+++ b/qt-ostree/qt-ostree
@@ -598,7 +598,11 @@ populate_filesystem_images()
mkdir recovery-dd
mount recovery.${RECOVERYFS_TYPE} recovery-dd/
cp ${BOOT_FILE_PATH}/* recovery-dd/
- chattr -R +i recovery-dd/
+ cd recovery-dd
+ ln -s initramfs-* initramfs
+ ln -s vmlinuz-* vmlinuz
+ cd -
+ chattr -R -f +i recovery-dd/ || /bin/true
fi
# When mounting a loopback, the kernel doesn't know that the backing device