Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
0fdb828f
Commit
0fdb828f
authored
Apr 07, 2010
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-disk: generate new fstab
parent
34a1d640
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
setup-disk.in
setup-disk.in
+5
-2
No files found.
setup-disk.in
View file @
0fdb828f
...
...
@@ -180,7 +180,10 @@ label $KERNEL_FLAVOR
kernel /boot/vmlinuz-
$KERNEL_FLAVOR
append initrd=/boot/initramfs-
$KERNEL_FLAVOR
root=
$(
uuid_or_device
$rootdev
)
modules=sd-mod,usb-storage,ext3
$raidmod
${
pax_nouderef
}
quiet
EOF
# fix the fstab
# generate the fstab
if
[
-f
"
$mnt
"
/etc/fstab
]
;
then
mv
"
$mnt
"
/etc/fstab
"
$mnt
"
/etc/fstab.old
fi
enumerate_fstab
"
$mnt
"
>>
"
$mnt
"
/etc/fstab
# install extlinux
...
...
@@ -362,10 +365,10 @@ EOF
rc-update
--quiet
add mdadm-raid boot
fi
rc-update
--quiet
add swap boot
install_mounted_root /mnt
||
return
1
# the func to generate fstab does not detect swap. add it manually
sed
-i
-e
'/swap/d'
/etc/fstab
echo
-e
"
$(
uuid_or_device
$swap_dev
)
\t
swap
\t\t
swap
\t
defaults 0 0"
>>
/etc/fstab
install_mounted_root /mnt
}
usage
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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