Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
dracut.4966
0337-Sync-initramfs-after-creation.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0337-Sync-initramfs-after-creation.patch of Package dracut.4966
From 8dbd42411eeb1d11d6177a460db21b31ab7193d1 Mon Sep 17 00:00:00 2001 From: Ankit Kumar <ankit@linux.vnet.ibm.com> Date: Mon, 7 Aug 2017 12:13:53 +0530 Subject: [PATCH 3/3] Sync initramfs after creation If we trigger crash just after creating initramfs, sometimes it is observed that initramfs is not written to disk causing the subsequent boot to fail. A sync should resolve this. Signed-off-by: Ankit Kumar <ankit@linux.vnet.ibm.com> --- dracut.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dracut.sh b/dracut.sh index 6c854cb1..57630c84 100755 --- a/dracut.sh +++ b/dracut.sh @@ -1620,4 +1620,10 @@ if (( maxloglvl >= 5 )); then fi fi +sync $outfile 2> /dev/null +if [ $? -ne 0 ] ; then + dinfo "dracut: sync operartion on newly created initramfs $outfile failed" + exit 1 +fi + exit 0 -- 2.12.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor