Browse Source

partprobe required to let the kernel recognize the partition table

Waldemar Brodkorb 10 years ago
parent
commit
d3edb85091
2 changed files with 5 additions and 1 deletions
  1. 3 0
      package/adkinstall/src/adkinstall
  2. 2 1
      package/parted/Makefile

+ 3 - 0
package/adkinstall/src/adkinstall

@@ -236,6 +236,7 @@ case $target {
 	create_partition /dev/sda ext2 $(($rootsize+1)) $(($maxsize-1))
 	set_boot_flag /dev/sda 1
 	change_part_type /dev/sda 2 88
+	partprobe /dev/sda
 	create_filesystem /dev/sda $fs 1
 	mdev -s
 	mount_fs /dev/sda 1 $fs /mnt
@@ -251,6 +252,7 @@ case $target {
 	create_partition /dev/sda ext2 $(($rootsize+1)) $(($maxsize-1))
 	set_boot_flag /dev/sda 1
 	change_part_type /dev/sda 2 88
+	partprobe /dev/sda
 	create_filesystem /dev/sda $fs 1
 	mdev -s
 	mount_fs /dev/sda 1 $fs /mnt
@@ -269,6 +271,7 @@ case $target {
 		set_boot_flag /dev/sda 1
 		change_part_type /dev/sda 1 27
 		change_part_type /dev/sda 3 88
+		partprobe /dev/sda
 		create_filesystem /dev/sda $fs 2
 		mdev -s
 		mount_fs /dev/sda 2 $fs /mnt

+ 2 - 1
package/parted/Makefile

@@ -5,7 +5,7 @@ include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		parted
 PKG_VERSION:=		3.2
-PKG_RELEASE:=		1
+PKG_RELEASE:=		2
 PKG_HASH:=		858b589c22297cacdf437f3baff6f04b333087521ab274f7ab677cb8c6bb78e4
 PKG_DESCR:=		partition table editor
 PKG_SECTION:=		sys/fs
@@ -39,5 +39,6 @@ ifneq ($(ADK_TARGET_USE_STATIC_LIBS),y)
 endif
 	$(INSTALL_DIR) $(IDIR_PARTED)/usr/sbin
 	$(INSTALL_BIN) $(WRKINST)/usr/sbin/parted $(IDIR_PARTED)/usr/sbin
+	$(INSTALL_BIN) $(WRKINST)/usr/sbin/partprobe $(IDIR_PARTED)/usr/sbin
 
 include $(ADK_TOPDIR)/mk/pkg-bottom.mk