diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-02 09:28:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-02-02 09:28:47 +0000 |
commit | a549de263e0281f00dbf0b426957227cfdc71817 (patch) | |
tree | 134614dfe3431cf0ef4f5ed4f10a44d2a7550777 /initramfs-init | |
parent | 102c46063593fb95fafa3b0fe331a5b19c80f8a3 (diff) | |
download | abuild-a549de263e0281f00dbf0b426957227cfdc71817.tar.gz abuild-a549de263e0281f00dbf0b426957227cfdc71817.tar.bz2 abuild-a549de263e0281f00dbf0b426957227cfdc71817.tar.xz abuild-a549de263e0281f00dbf0b426957227cfdc71817.zip |
initramfs: use default tmpfs size for rootv1.7
set default repositories
Diffstat (limited to 'initramfs-init')
-rwxr-xr-x | initramfs-init | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/initramfs-init b/initramfs-init index b7fa743..5033af7 100755 --- a/initramfs-init +++ b/initramfs-init @@ -133,7 +133,7 @@ ebegin "Loading hardware drivers" scan_drivers eend 0 -mount -t tmpfs -o size=50M tmpfs $NEWROOT +mount -t tmpfs tmpfs $NEWROOT # look for apkovl for i in usb floppy cdrom; do @@ -161,6 +161,11 @@ eend $? cp /media/$ALPINE_DEV/.alpine-release $NEWROOT/ ln -sf /.alpine-release $NEWROOT/etc/alpine-release +# if there is no repositories file, then use the default +if ! [ -f $NEWROOT/etc/apk/repositories ]; then + echo /media/$ALPINE_DEV/apks > $NEWROOT/etc/apk/repositories +fi + # switch over to new root cat /proc/mounts | while read DEV DIR TYPE OPTS ; do if [ "$DIR" != "/" -a "$DIR" != "$NEWROOT" -a -d "$DIR" ]; then |