Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bsdinstall/scripts/pkgbase.in
| Show First 20 Lines • Show All 349 Lines • ▼ Show 20 Lines | while not os.execute(pkg .. "install -U -F -y -r FreeBSD-base " .. packages) do | ||||
| if not prompt_yn("Fetching packages failed, try again?") then | if not prompt_yn("Fetching packages failed, try again?") then | ||||
| os.exit(1) | os.exit(1) | ||||
| end | end | ||||
| end | end | ||||
| if not os.execute(pkg .. "install -U -y -r FreeBSD-base " .. packages) then | if not os.execute(pkg .. "install -U -y -r FreeBSD-base " .. packages) then | ||||
| os.exit(1) | os.exit(1) | ||||
| end | end | ||||
| -- Enable the FreeBSD-base repository for this system. | |||||
| assert(os.execute("mkdir -p " .. chroot .. "/usr/local/etc/pkg/repos")) | |||||
| assert(os.execute("echo 'FreeBSD-base: { enabled: yes }' > " .. chroot .. "/usr/local/etc/pkg/repos/FreeBSD.conf")) | |||||
| end | end | ||||
| pkgbase() | pkgbase() | ||||