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
f0b4c353
Commit
f0b4c353
authored
Feb 22, 2012
by
Gerardo Exequiel Pozzi
Browse files
[archiso] Use losetup/mount instead of mount directly *.sfs
Signed-off-by:
Gerardo Exequiel Pozzi
<
vmlinuz386@yahoo.com.ar
>
parent
e6c885d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/hooks/archiso
View file @
f0b4c353
...
...
@@ -40,6 +40,7 @@ _mnt_sfs() {
local
img
=
"
${
1
}
"
local
mnt
=
"
${
2
}
"
local
img_fullname
=
"
${
img
##*/
}
"
local
sfs_dev
if
[[
"
${
copytoram
}
"
==
"y"
]]
;
then
msg
-n
":: Copying squashfs image to RAM..."
...
...
@@ -50,7 +51,8 @@ _mnt_sfs() {
img
=
"/run/archiso/copytoram/
${
img_fullname
}
"
msg
"done."
fi
_mnt_dev
"
${
img
}
"
"
${
mnt
}
"
"-r"
sfs_dev
=
$(
losetup
--find
--show
--read-only
"
${
img
}
"
)
_mnt_dev
"
${
sfs_dev
}
"
"
${
mnt
}
"
"-r"
}
# args: device, mountpoint, flags
...
...
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