Changeset 2665


Ignore:
Timestamp:
Oct 24, 2016, 11:39:42 AM (3 years ago)
Author:
mabarracus
Message:

Fix script bugs

Location:
llx-netinstall/trunk/fuentes/install.llx-netinstall/usr/share/llx-netinstall/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • llx-netinstall/trunk/fuentes/install.llx-netinstall/usr/share/llx-netinstall/templates/common.cfg

    r2663 r2665  
    159159
    160160#Final command
    161 d-i preseed/late_command string wget -O /d-i-late-command http://preseed/d-i-late-command ; /d-i-late-command /target ; busybox poweroff
     161d-i preseed/late_command string wget -O /d-i-late-command http://preseed/d-i-late-command ; chmod +x /d-i-late-command ; /d-i-late-command /target ; busybox poweroff
    162162
    163163#reboot options
  • llx-netinstall/trunk/fuentes/install.llx-netinstall/usr/share/llx-netinstall/templates/d-i-late-command

    r2663 r2665  
    1 #!/bin/bash
     1#!/bin/sh
    22#
    33# This script is licensed under GPL V3 or higher
     
    3131    esac
    3232   
    33     echo "# LliureX Net-Installation ${param}"  >> ${BASE_DIR}/etc/apt/sources.list
    34     echo "deb ${SERVER} xenial main universe restricted multiverse"  > ${BASE_DIR}/etc/apt/sources.list
    35     echo "deb ${SERVER} xenial-updates main universe restricted multiverse"  > ${BASE_DIR}/etc/apt/sources.list
    36     echo "deb ${SERVER} xenial-security main universe restricted multiverse"  > ${BASE_DIR}/etc/apt/sources.list
     33    echo "# LliureX Net-Installation ${param}"  > ${BASE_DIR}/etc/apt/sources.list
     34    echo "deb ${SERVER} xenial main universe restricted multiverse"  >> ${BASE_DIR}/etc/apt/sources.list
     35    echo "deb ${SERVER} xenial-updates main universe restricted multiverse"  >> ${BASE_DIR}/etc/apt/sources.list
     36    echo "deb ${SERVER} xenial-security main universe restricted multiverse"  >> ${BASE_DIR}/etc/apt/sources.list
    3737}
    3838
     
    4949fi
    5050
    51 class=$(cat /proc/cmdline |sed -r "s%.*preseed/url=http://preseed/([a-zA-Z_\-]+).cfg .*%\1")
     51class=$(cat /proc/cmdline |sed -r "s%.*preseed/url=http://preseed/([a-zA-Z_\-]+).cfg .*%\1%")
    5252
    5353put_apt_conf ${BASE_DIR} ${class}
Note: See TracChangeset for help on using the changeset viewer.