initramfs: use default tmpfs size for root
set default repositories
This commit is contained in:
parent
102c460635
commit
a549de263e
@ -133,7 +133,7 @@ ebegin "Loading hardware drivers"
|
|||||||
scan_drivers
|
scan_drivers
|
||||||
eend 0
|
eend 0
|
||||||
|
|
||||||
mount -t tmpfs -o size=50M tmpfs $NEWROOT
|
mount -t tmpfs tmpfs $NEWROOT
|
||||||
|
|
||||||
# look for apkovl
|
# look for apkovl
|
||||||
for i in usb floppy cdrom; do
|
for i in usb floppy cdrom; do
|
||||||
@ -161,6 +161,11 @@ eend $?
|
|||||||
cp /media/$ALPINE_DEV/.alpine-release $NEWROOT/
|
cp /media/$ALPINE_DEV/.alpine-release $NEWROOT/
|
||||||
ln -sf /.alpine-release $NEWROOT/etc/alpine-release
|
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
|
# switch over to new root
|
||||||
cat /proc/mounts | while read DEV DIR TYPE OPTS ; do
|
cat /proc/mounts | while read DEV DIR TYPE OPTS ; do
|
||||||
if [ "$DIR" != "/" -a "$DIR" != "$NEWROOT" -a -d "$DIR" ]; then
|
if [ "$DIR" != "/" -a "$DIR" != "$NEWROOT" -a -d "$DIR" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user