Permalink
Browse files

fix umount optcial media - pupmode 77

  • Loading branch information...
1 parent 36d1f0a commit 5086a74101b860f94d8c2a8e846b2cbafa0a4349 @gyrog gyrog committed Jan 11, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 initrd-progs/0initrd/init
@@ -680,7 +680,7 @@ prepend_dir() { #SAVE_LAYER=/pup_ro1
echo "mount -o remount,add:1:${SAVE_LAYER}=ro+wh /pup_new" #debug
mount -o remount,add:1:${SAVE_LAYER}=ro+wh /pup_new #ro+wh = Readonly branch and it has/might have whiteouts on it
if [ $? -eq 0 ];then
- KEEPMOUNTED="${KEEPMOUNTED}${SAVEPART} "
+ [ $PUPMODE -ne 77 ] && KEEPMOUNTED="${KEEPMOUNTED}${SAVEPART} "
[ "$SAVE_NAME" ] && NEWUNIONRECORD="$SAVE_NAME $NEWUNIONRECORD"
else
printf "${L_ADDING_SAVE_LAYER_FAILED}\n" "$SAVE_LAYER"

1 comment on commit 5086a74

@gyrog
Contributor
gyrog commented on 5086a74 Jan 11, 2017

sr0 now gets umounted by new init in pupmode 77, just like old init.

Please sign in to comment.