]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut-functions: make created directories writable
authorHarald Hoyer <harald@redhat.com>
Fri, 20 May 2011 18:08:59 +0000 (20:08 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 May 2011 18:08:59 +0000 (20:08 +0200)
dracut-functions

index a9817c12de955089518e4e44eb63ad204fd1351c..ac7fd763c10ef3c3d318659291b024d7db643285 100755 (executable)
@@ -236,7 +236,10 @@ inst_dir() {
             [[ -h ${initdir}$_file ]] && _file=$(readlink "${initdir}$_file")
             # create directory
             mkdir -m 0755 -p "${initdir}$_file" || return 1
-            [[ -d "$_file" ]] && chmod --reference="$_file" "${initdir}$_file"
+            if [[ -d "$_file" ]]; then
+                chmod --reference="$_file" "${initdir}$_file"
+                chmod u+w "${initdir}$_file"
+            fi
         fi
     done
 }