Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
archiso
Commits
93763a2d
Commit
93763a2d
authored
Jun 23, 2011
by
Gerardo Exequiel Pozzi
Browse files
[archiso] Delete etc/mtab on _cleanup step
Signed-off-by:
Gerardo Exequiel Pozzi
<
vmlinuz386@yahoo.com.ar
>
parent
0d895a22
Changes
2
Hide whitespace changes
Inline
Side-by-side
archiso/mkarchiso
View file @
93763a2d
...
...
@@ -191,6 +191,10 @@ _cleanup () {
if
[[
-d
"
${
work_dir
}
/root-image/tmp"
]]
;
then
find
"
${
work_dir
}
/root-image/tmp"
-mindepth
1
-delete
fi
# Delete etc/mtab if not is a symlink.
if
[[
!
-L
"
${
work_dir
}
/root-image/etc/mtab"
]]
;
then
rm
-f
"
${
work_dir
}
/root-image/etc/mtab"
fi
}
# Makes a SquashFS filesystem image of file/directory passes as argument with desired compression.
...
...
configs/releng/build.sh
View file @
93763a2d
...
...
@@ -34,9 +34,6 @@ make_customize_root_image() {
cp
-af
root-image
${
work_dir
}
chmod
750
${
work_dir
}
/root-image/etc/sudoers.d
chmod
440
${
work_dir
}
/root-image/etc/sudoers.d/g_wheel
if
[[
!
-L
${
work_dir
}
/root-image/etc/mtab
]]
;
then
rm
-f
${
work_dir
}
/root-image/etc/mtab
fi
mkdir
-p
${
work_dir
}
/root-image/etc/pacman.d
wget
-O
${
work_dir
}
/root-image/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/all/
sed
-i
"s/#Server/Server/g"
${
work_dir
}
/root-image/etc/pacman.d/mirrorlist
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment