# HG changeset patch # User Rob Landley # Date 1420999290 21600 # Node ID 45c936d9371154f85a047f5acae4865e00a7ced8 # Parent 36beae266f902e4c05e9750a63a2e03ae35a6220 Drop ROOT_NODIRS, it's not worth the complexity to support both layouts. diff -r 36beae266f90 -r 45c936d93711 config --- a/config Sun Jan 25 11:53:31 2015 -0600 +++ b/config Sun Jan 11 12:01:30 2015 -0600 @@ -23,11 +23,6 @@ # export NO_NATIVE_COMPILER=1 -# Setting this tells root-filesystem.sh not to create the normal directory -# hierarchy of /usr, /tmp, /etc, and so on. - -# export ROOT_NODIRS=1 - # Setting this tells build.sh to use the existing $PATH commands to build # everything, which probably won't work out of the box. Cross compiling is # an insanely delicate process which requires a carefully configured host diff -r 36beae266f90 -r 45c936d93711 simple-root-filesystem.sh --- a/simple-root-filesystem.sh Sun Jan 25 11:53:31 2015 -0600 +++ b/simple-root-filesystem.sh Sun Jan 11 12:01:30 2015 -0600 @@ -13,26 +13,20 @@ # Determine which directory layout we're using -if [ -z "$ROOT_NODIRS" ] -then - mkdir -p "$STAGE_DIR"/{tmp,proc,sys,dev,home,mnt,root} && - chmod a+rwxt "$STAGE_DIR/tmp" || dienow +mkdir -p "$STAGE_DIR"/{tmp,proc,sys,dev,home,mnt,root} && +chmod a+rwxt "$STAGE_DIR/tmp" || dienow - STAGE_USR="$STAGE_DIR/usr" +STAGE_USR="$STAGE_DIR/usr" - # Having lots of repeated locations at / and also under /usr is silly, so - # symlink them together. (The duplication happened back in the 1970's - # when Ken and Dennis ran out of space on their PDP-11's root disk and - # leaked the OS into the disk containing the user home directories. It's - # been mindlessly duplicated ever since.) - for i in bin sbin lib etc - do - mkdir -p "$STAGE_USR/$i" && ln -s "usr/$i" "$STAGE_DIR/$i" || dienow - done - -else - STAGE_USR="$STAGE_DIR" && mkdir -p "$STAGE_DIR/bin" || dienow -fi +# Having lots of repeated locations at / and also under /usr is silly, so +# symlink them together. (The duplication happened back in the 1970's +# when Ken and Dennis ran out of space on their PDP-11's root disk and +# leaked the OS into the disk containing the user home directories. It's +# been mindlessly duplicated ever since.) +for i in bin sbin lib etc +do + mkdir -p "$STAGE_USR/$i" && ln -s "usr/$i" "$STAGE_DIR/$i" || dienow +done # Copy qemu setup script and so on.