File: create_fstab_header

package info (click to toggle)
partman-target 49
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 708 kB
  • ctags: 8
  • sloc: sh: 379; makefile: 29
file content (12 lines) | stat: -rwxr-xr-x 363 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

[ -d /target/etc ] || mkdir /target/etc

cat >/target/etc/fstab <<EOF
# /etc/fstab: static file system information.
#
EOF

printf "%-15s %-15s %-7s %-15s %-7s %s\n" '# <file system>' '<mount point>' '<type>' '<options>' '<dump>' '<pass>' >> /target/etc/fstab

printf "%-15s %-15s %-7s %-15s %-7s %s\n" proc /proc proc defaults 0 0 >> /target/etc/fstab