Commit Graph

19 Commits

Author SHA1 Message Date
Dave Reisner
b61c8cb366 move mangle to common, add unmangle, use in genfstab
The %b formatter is too generic for us to use, as a sequence such as
'\b' is invalid for hex escaping, but valid for %b. Port over the logic
from util-linux's mangle mini-lib and use this instead. This supports
both 3 digits hex as well as 3 digit octal escapes, and will ignore the
more generic ascii based single character escapes. Output is always in
octal format to comply with fstab(5).
2012-06-18 10:50:52 -04:00
Pierre Schmitz
9307f3d1dd Mount /etc/resolv.conf into chroot environment
The ability to resolve DNS queries is espicially useful for arch-chroot.

Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2012-06-18 11:58:30 +02:00
Pierre Schmitz
6fcfe3b268 Create a project Makefile
* the Makefile uses m4 to build the common lib into the scripts
* it includes install, uninstall and clean targets
* the dist target creates a source tar from a tag

Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
2012-06-18 11:17:42 +02:00
Dave Reisner
5e33ae2a9e pacstrap: add -d option to allow install to non-mount 2012-06-17 23:45:46 -04:00
Dave Reisner
ecc5942424 genfstab: deal with proper escaping/unescaping of cols
the source, target, and comments should always be mangled on writing,
and unmangled on reading.
2012-06-17 23:29:29 -04:00
Dave Reisner
8fc4708377 genfstab: handle bind mounts 2012-06-17 22:53:46 -04:00
Dave Reisner
67ec87fef0 be more verbose about chroot actions 2012-06-17 21:11:34 -04:00
Dave Reisner
1751526bc9 add proper help/usage for tools 2012-06-17 17:52:39 -04:00
Dave Reisner
2ace610c2f common: ensure the chroot point is a mountpoint 2012-06-17 17:08:27 -04:00
Dave Reisner
aa3f8471e2 add chroot helper tool 2012-06-17 16:44:55 -04:00
Dave Reisner
a00f7f33b5 genfstab: cleanup comment generation
pseudofs mounts won't have a UUID or LABEL
2012-06-17 16:35:42 -04:00
Dave Reisner
a78bbcb52a Merge git://github.com/teg/arch-install-scripts
* git://github.com/teg/arch-install-scripts:
  genfstab: make comment a bit more useful
2012-06-17 16:26:37 -04:00
Tom Gundersen
e0d81ce37c genfstab: make comment a bit more useful
Help the admin tweak the generated fstab file by adding as much info as we have in the comment for each entry.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2012-06-17 23:27:19 +02:00
Dave Reisner
429d525480 add --noconfirm flag 2012-06-17 16:26:30 -04:00
Dave Reisner
91e63059d4 fix var substitution in dir creation 2012-06-17 16:09:18 -04:00
Dave Reisner
fc7be0ae8a fix vim modeline 2012-06-17 16:05:25 -04:00
Dave Reisner
6fc922730f fix typo in array name 2012-06-17 16:05:18 -04:00
Dave Reisner
6c42d3467c call umount as a trap handler 2012-06-17 15:28:38 -04:00
Dave Reisner
f614a4ee87 initial commit 2012-06-17 15:17:50 -04:00