Magellan Linux

Diff of /trunk/bootstrap/mage-bootstrap.sh.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2191 by niro, Wed Oct 9 10:32:55 2013 UTC revision 3117 by niro, Wed Aug 7 18:36:52 2019 UTC
# Line 79  add_initrc() Line 79  add_initrc()
79    
80  enter_chroot()  enter_chroot()
81  {  {
82   mount -t proc proc ${MROOT}/proc || die "mount proc"   is_loc_mounted "${MROOT}/proc" || mount -t proc proc ${MROOT}/proc
83   mount -t sysfs sysfs ${MROOT}/sys || die "mount sys"   is_loc_mounted "${MROOT}/sys" || mount -t sysfs sysfs ${MROOT}/sys
84   mount -o bind /dev ${MROOT}/dev || die "mount dev"   is_loc_mounted "${MROOT}/dev" || mount -o bind /dev ${MROOT}/dev
85    
86   chroot ${MROOT} /bin/bash -i /.installrc || die "chr00ting"   chroot ${MROOT} /bin/bash -i /.installrc || die "chr00ting"
87    
88   umount ${MROOT}/dev ${MROOT}/sys ${MROOT}/proc || die "mount proc/sys/dev"   is_loc_mounted "${MROOT}/dev" && umount ${MROOT}/dev
89     is_loc_mounted "${MROOT}/sys" && umount ${MROOT}/sys
90     is_loc_mounted "${MROOT}/proc" && umount ${MROOT}/proc
91    
92   [ -f ${MROOT}/.installrc ] && rm ${MROOT}/.installrc   [ -f ${MROOT}/.installrc ] && rm ${MROOT}/.installrc
93  }  }
# Line 234  then Line 236  then
236   echo "Stage1 complete; user requested to abort after this step."   echo "Stage1 complete; user requested to abort after this step."
237   echo "Exiting ..."   echo "Exiting ..."
238   exit 0   exit 0
239    else
240     echo "Stage1 complete; continuing."
241  fi  fi
242    
243  # now create an initrc for the installation of the basesystem  # now create an initrc for the installation of the basesystem
# Line 245  add_initrc "export BASESYSTEM=${BASESYST Line 249  add_initrc "export BASESYSTEM=${BASESYST
249  add_initrc "export PROFILE=${PROFILE}"  add_initrc "export PROFILE=${PROFILE}"
250  add_initrc "export CONFIG_PROTECT=-*"  add_initrc "export CONFIG_PROTECT=-*"
251  add_initrc "export MY_MAGEDIR=${MY_MAGEDIR}"  add_initrc "export MY_MAGEDIR=${MY_MAGEDIR}"
252    if [[ -n ${MAGERC} ]]
253    then
254     # unset global MAGERC here (bash-5 inclusion issues)
255     add_initrc 'unset MAGERC'
256    fi
257    
258  # add proxies if defined  # add proxies if defined
259  [[ -n ${http_proxy} ]] && add_initrc "export http_proxy=${http_proxy}"  [[ -n ${http_proxy} ]] && add_initrc "export http_proxy=${http_proxy}"

Legend:
Removed from v.2191  
changed lines
  Added in v.3117