Loading makechrootpkg +2 −2 Original line number Diff line number Diff line #!/bin/sh #!/bin/bash # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. Loading Loading @@ -76,7 +76,7 @@ fi [ -d "$chrootdir/rw" ] || mkdir "$chrootdir/rw" [ -d "$chrootdir/union" ] || mkdir "$chrootdir/union" function cleanup () cleanup () { echo "cleaning up unioned mounts" umount "$chrootdir/union" Loading mkarchroot +5 −5 Original line number Diff line number Diff line #!/bin/sh #!/bin/bash # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. Loading Loading @@ -48,7 +48,7 @@ fi shift $(($OPTIND - 1)) if [ "$RUN" == "" -a $# -lt 2 ]; then if [ "$RUN" = "" -a $# -lt 2 ]; then echo "you must specify a directory and one or more packages" usage 1 elif [ $# -lt 1 ]; then Loading @@ -63,7 +63,7 @@ shift 1 # {{{ functions function chroot_mount () chroot_mount () { echo "mounting sysfs : /sys" [ -e "${working_dir}/sys" ] || mkdir "${working_dir}/sys" Loading @@ -87,7 +87,7 @@ function chroot_mount () trap 'chroot_umount' 0 1 2 15 } function chroot_umount () chroot_umount () { echo "cleaning up mounts" umount "${working_dir}/proc" Loading Loading @@ -140,7 +140,7 @@ else for i in $@; do echo -e "\t$i"; done op="-Sy" if [ "$FORCE" == "y" ]; then if [ "$FORCE" = "y" ]; then op="${op}f" fi if ! pacman ${op} ${pacargs} $@; then Loading Loading
makechrootpkg +2 −2 Original line number Diff line number Diff line #!/bin/sh #!/bin/bash # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. Loading Loading @@ -76,7 +76,7 @@ fi [ -d "$chrootdir/rw" ] || mkdir "$chrootdir/rw" [ -d "$chrootdir/union" ] || mkdir "$chrootdir/union" function cleanup () cleanup () { echo "cleaning up unioned mounts" umount "$chrootdir/union" Loading
mkarchroot +5 −5 Original line number Diff line number Diff line #!/bin/sh #!/bin/bash # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. Loading Loading @@ -48,7 +48,7 @@ fi shift $(($OPTIND - 1)) if [ "$RUN" == "" -a $# -lt 2 ]; then if [ "$RUN" = "" -a $# -lt 2 ]; then echo "you must specify a directory and one or more packages" usage 1 elif [ $# -lt 1 ]; then Loading @@ -63,7 +63,7 @@ shift 1 # {{{ functions function chroot_mount () chroot_mount () { echo "mounting sysfs : /sys" [ -e "${working_dir}/sys" ] || mkdir "${working_dir}/sys" Loading @@ -87,7 +87,7 @@ function chroot_mount () trap 'chroot_umount' 0 1 2 15 } function chroot_umount () chroot_umount () { echo "cleaning up mounts" umount "${working_dir}/proc" Loading Loading @@ -140,7 +140,7 @@ else for i in $@; do echo -e "\t$i"; done op="-Sy" if [ "$FORCE" == "y" ]; then if [ "$FORCE" = "y" ]; then op="${op}f" fi if ! pacman ${op} ${pacargs} $@; then Loading