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
9154b028
Commit
9154b028
authored
Jul 09, 2010
by
Gerardo Exequiel Pozzi
Browse files
First mount ${archisodevice} before other mounts
Signed-off-by:
Gerardo Exequiel Pozzi
<
vmlinuz386@yahoo.com.ar
>
parent
1fc3a61b
Changes
1
Hide whitespace changes
Inline
Side-by-side
archiso/hooks/archiso
View file @
9154b028
...
...
@@ -75,16 +75,6 @@ run_hook () {
archiso_mount_handler
()
{
newroot
=
"
${
1
}
"
msg
-n
":: Mounting tmpfs, size=
${
tmpfs_size
}
..."
mount
-t
tmpfs
-o
"size=
${
tmpfs_size
}
"
,mode
=
0755 tmpfs /tmpfs
msg
"done."
if
[
"
${
copytoram
}
"
=
"y"
]
;
then
msg
-n
":: Mounting tmpfs (for squashfs), size=
${
tmpfs_sqfs_size
}
..."
mount
-t
tmpfs
-o
"size=
${
tmpfs_sqfs_size
}
"
,mode
=
0755 tmpfs /tmpfs.sqfs
msg
"done."
fi
msg
":: Waiting for boot device..."
while
!
poll_device
${
archisodevice
}
30
;
do
echo
"ERROR: boot device didn't show up after 30 seconds..."
...
...
@@ -118,6 +108,16 @@ archiso_mount_handler() {
launch_interactive_shell
fi
if
[
"
${
copytoram
}
"
=
"y"
]
;
then
msg
-n
":: Mounting tmpfs (for squashfs), size=
${
tmpfs_sqfs_size
}
..."
mount
-t
tmpfs
-o
"size=
${
tmpfs_sqfs_size
}
"
,mode
=
0755 tmpfs /tmpfs.sqfs
msg
"done."
fi
msg
-n
":: Mounting tmpfs, size=
${
tmpfs_size
}
..."
mount
-t
tmpfs
-o
"size=
${
tmpfs_size
}
"
,mode
=
0755 tmpfs /tmpfs
msg
"done."
msg
":: Mounting root (aufs) filesystem"
/bin/mount
-t
aufs
-o
dirs
=
/tmpfs
=
rw none
"
${
newroot
}
"
if
[
$?
-ne
0
]
;
then
...
...
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