mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Update auto-resize code to work with any partition number
This commit is contained in:
@@ -162,11 +162,6 @@ endif
|
||||
printf "$(FSTAB_FMT)" "$$(blkid -o value -s UUID $(PART_ROOT))" "/" \
|
||||
"auto" "defaults" 1 1 >> $(MNThdd)/etc/fstab
|
||||
|
||||
# Setup symlink for partresize at first boot...
|
||||
ln -sf ../init.d/partresize $(MNThdd)/etc/rc.d/rcsysinit.d/S25partresize
|
||||
# Setup symlink for fsresize at second boot...
|
||||
ln -sf ../init.d/fsresize $(MNThdd)/etc/rc.d/rcsysinit.d/S42fsresize
|
||||
|
||||
ifeq "$(BOOTLOADER)" "grub"
|
||||
ifeq "$(SCON)" "1"
|
||||
# Enable serial console on GRUB
|
||||
@@ -189,6 +184,9 @@ endif
|
||||
--root-directory=$(MNThdd) $(DEVICE)
|
||||
endif
|
||||
|
||||
# Automatically resize the root partition to its maximum size at first boot
|
||||
touch $(MNThdd)/.partresize
|
||||
|
||||
# Unmount
|
||||
umount $(MNThdd)/proc
|
||||
umount $(MNThdd)/sys
|
||||
|
||||
Reference in New Issue
Block a user