Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

uubase: add a masochistic why-dont-you-just-skip-initcpio install layout

  • Loading branch information...
commit 84fef9b413853076d4c3018ef85b0892da1a2eae 1 parent 63eda44
@falconindy authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 uubase
View
27 uubase
@@ -0,0 +1,27 @@
+# an absolutely bare bones setup. no busybox, no udev. you MUST declare all
+# needed modules in your config's MODULES array.
+#
+# You have no chance to survive make your time.
+#
+
+install() {
+ # base filesystem structure
+ for dir in proc sys dev {,s}bin usr{,/bin,/lib,/sbin} run new_root; do
+ add_dir /$dir
+ done
+
+ # necessary binaries
+ add_binary /lib/initcpio/cinit /init
+ add_binary /sbin/modprobe
+
+ add_file "$CONFIG" /config
+}
+
+help() {
+ cat <<HELPEOF
+ This hook sets up all initial directories and installs base utilities,
+ including udev.
+HELPEOF
+}
+
+# vim: set et sw=2 ft=sh:
Please sign in to comment.
Something went wrong with that request. Please try again.